Click here to Skip to main content
15,913,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: datatable [modified] Pin
Saksida Bojan2-Dec-09 7:09
Saksida Bojan2-Dec-09 7:09 
GeneralRe: datatable Pin
farokhian2-Dec-09 7:24
farokhian2-Dec-09 7:24 
GeneralRe: datatable Pin
Saksida Bojan2-Dec-09 7:38
Saksida Bojan2-Dec-09 7:38 
GeneralRe: datatable Pin
farokhian2-Dec-09 7:52
farokhian2-Dec-09 7:52 
GeneralRe: datatable Pin
Blue_Boy2-Dec-09 7:57
Blue_Boy2-Dec-09 7:57 
GeneralRe: datatable Pin
farokhian2-Dec-09 8:16
farokhian2-Dec-09 8:16 
GeneralRe: datatable Pin
Saksida Bojan2-Dec-09 8:24
Saksida Bojan2-Dec-09 8:24 
GeneralRe: datatable Pin
farokhian2-Dec-09 8:46
farokhian2-Dec-09 8:46 
I create my database in sql server 2005 and connect to it in my project;
I execute each select command and put answers in datatable;
At first i want to say "thanks alot for your attention"
now i want to put each cells of datatable in textboxes.
Note:The result of each datatable is one row and total culumns of 7 datatable is 80;


I wanted to test your code but it doesn't work!
for example all the textboxes.text must have text "hellow" but in foreach loop it just check one of the controlls( it is a panel)and see that it is not textbox and then leave the loop!?



int nCount = 0;
foreach (Control ctr in this.Controls)
{
if (ctr is TextBox) // This is correct statement for checking if Object is specific type
{
TextBox tb = ctr as TextBox; // This line cast Object to TextBox
tb.Text = "hellow";
nCount++;
}
}
GeneralRe: datatable Pin
Saksida Bojan2-Dec-09 8:55
Saksida Bojan2-Dec-09 8:55 
GeneralRe: datatable Pin
farokhian2-Dec-09 9:18
farokhian2-Dec-09 9:18 
GeneralRe: datatable Pin
Blue_Boy2-Dec-09 9:34
Blue_Boy2-Dec-09 9:34 
GeneralRe: datatable Pin
Saksida Bojan2-Dec-09 10:25
Saksida Bojan2-Dec-09 10:25 
GeneralRe: datatable Pin
Saksida Bojan2-Dec-09 8:10
Saksida Bojan2-Dec-09 8:10 
GeneralRe: datatable Pin
DaveyM692-Dec-09 11:24
professionalDaveyM692-Dec-09 11:24 
QuestionHow to access fields and values from an XML Database Pin
DTWC_Lawrence2-Dec-09 6:35
DTWC_Lawrence2-Dec-09 6:35 
AnswerRe: How to access fields and values from an XML Database Pin
puri keemti3-Dec-09 23:05
puri keemti3-Dec-09 23:05 
QuestionSystem.Diagnostics.Process.Start Pin
CoderOnline2-Dec-09 6:27
CoderOnline2-Dec-09 6:27 
AnswerRe: System.Diagnostics.Process.Start Pin
Saksida Bojan2-Dec-09 6:32
Saksida Bojan2-Dec-09 6:32 
GeneralRe: System.Diagnostics.Process.Start....modified Pin
CoderOnline2-Dec-09 6:34
CoderOnline2-Dec-09 6:34 
GeneralRe: System.Diagnostics.Process.Start....modified Pin
Saksida Bojan2-Dec-09 6:37
Saksida Bojan2-Dec-09 6:37 
GeneralRe: System.Diagnostics.Process.Start....modified Pin
Saksida Bojan2-Dec-09 6:50
Saksida Bojan2-Dec-09 6:50 
GeneralRe: System.Diagnostics.Process.Start....modified Pin
CoderOnline2-Dec-09 7:08
CoderOnline2-Dec-09 7:08 
Questionwia temp picture problem Pin
mehrdad3332-Dec-09 6:18
mehrdad3332-Dec-09 6:18 
QuestionGZipStream problem Pin
zeeShan anSari2-Dec-09 6:03
zeeShan anSari2-Dec-09 6:03 
AnswerRe: GZipStream problem Pin
harold aptroot2-Dec-09 6:08
harold aptroot2-Dec-09 6:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.