Click here to Skip to main content
15,923,389 members
Home / Discussions / C#
   

C#

 
GeneralCopy an excel document Pin
fatihsen25-Apr-05 1:34
fatihsen25-Apr-05 1:34 
GeneralRe: Copy an excel document Pin
turbochimp25-Apr-05 2:49
turbochimp25-Apr-05 2:49 
General[ActiveDirectory] Connect to group Pin
Jaymz66625-Apr-05 1:05
Jaymz66625-Apr-05 1:05 
Generalmixer - balance settings Pin
Mr.Dani25-Apr-05 0:24
Mr.Dani25-Apr-05 0:24 
QuestionHow to bind IList to a DataGridTableStyle? Pin
Member 59674924-Apr-05 23:15
Member 59674924-Apr-05 23:15 
AnswerRe: How to bind IList to a DataGridTableStyle? Pin
Anonymous25-Apr-05 1:08
Anonymous25-Apr-05 1:08 
Generalselecting row from datagrid Pin
anj198324-Apr-05 23:06
anj198324-Apr-05 23:06 
GeneralRe: selecting row from datagrid Pin
Polis Pilavas25-Apr-05 9:19
Polis Pilavas25-Apr-05 9:19 
A simple example.

Suppose you have a dataSet that contains data from a couple of tables located in a Database. The following code snippet will loop through each of the records in the FIRST table of the dataSet and will display the values of the fields username and password, for each record (row). I know it's a silly example since it doesn't make a lot of sense to do something like that, but it demonstrates the way for accessing the rows in a table:
DataTable <code>dt</code> = dataSet1.Tables[0];
for(int <code>i</code> = 0; i < dt.Rows.Count; i++)  
{
    this.textBox1.Text.Trim() == dt.Rows[i]["Username"].ToString().Trim();
    this.textBox2.Text.Trim() == dt.Rows[i]["Password"].ToString().Trim();
}


Hope this helps

Regards,
Polis

Can you practice what you teach?
Generalcontrol another pc in lan Pin
mtbjr24-Apr-05 22:31
mtbjr24-Apr-05 22:31 
GeneralRe: control another pc in lan Pin
.Anonymous25-Apr-05 14:32
suss.Anonymous25-Apr-05 14:32 
GeneralGet remote hardware profile Pin
Yeast2724-Apr-05 21:08
Yeast2724-Apr-05 21:08 
QuestionHow to handle event in PictureBox? Pin
TanutAPI24-Apr-05 19:22
TanutAPI24-Apr-05 19:22 
AnswerRe: How to handle event in PictureBox? Pin
Enishi25-Apr-05 1:43
Enishi25-Apr-05 1:43 
GeneralRe: How to handle event in PictureBox? Pin
TanutAPI25-Apr-05 17:15
TanutAPI25-Apr-05 17:15 
QuestionHow to make a loading screen? Pin
Anonymous24-Apr-05 14:43
Anonymous24-Apr-05 14:43 
GeneralFill many combo in a fORm fROm DB Pin
Jassim Rahma24-Apr-05 11:38
Jassim Rahma24-Apr-05 11:38 
GeneralRe: Fill many combo in a fORm fROm DB Pin
Kodanda Pani24-Apr-05 18:28
Kodanda Pani24-Apr-05 18:28 
GeneralMDI Child without Min, Max or X Pin
Jassim Rahma24-Apr-05 11:30
Jassim Rahma24-Apr-05 11:30 
GeneralRe: MDI Child without Min, Max or X Pin
Ashok Dhamija24-Apr-05 18:17
Ashok Dhamija24-Apr-05 18:17 
GeneralRe: MDI Child without Min, Max or X Pin
Kodanda Pani24-Apr-05 18:32
Kodanda Pani24-Apr-05 18:32 
GeneralRe: MDI Child without Min, Max or X Pin
Luis Alonso Ramos24-Apr-05 20:18
Luis Alonso Ramos24-Apr-05 20:18 
GeneralRe: MDI Child without Min, Max or X Pin
Ashok Dhamija24-Apr-05 21:06
Ashok Dhamija24-Apr-05 21:06 
QuestionA syntax error or logic? Pin
Tugbay Sahin24-Apr-05 9:26
Tugbay Sahin24-Apr-05 9:26 
AnswerRe: A syntax error or logic? Pin
Dave Kreskowiak24-Apr-05 16:31
mveDave Kreskowiak24-Apr-05 16:31 
GeneralRe: A syntax error or logic? Pin
Anonymous24-Apr-05 19:51
Anonymous24-Apr-05 19:51 

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.