Click here to Skip to main content
15,891,372 members
Home / Discussions / C#
   

C#

 
GeneralRe: How C# should communicate with access db file ? Pin
Dave Kreskowiak10-Mar-10 17:42
mveDave Kreskowiak10-Mar-10 17:42 
GeneralRe: How C# should communicate with access db file ? Pin
coding freaks10-Mar-10 20:02
coding freaks10-Mar-10 20:02 
GeneralRe: How C# should communicate with access db file ? Pin
Luc Pattyn10-Mar-10 17:34
sitebuilderLuc Pattyn10-Mar-10 17:34 
AnswerRe: How C# should communicate with access db file ? Pin
coding freaks10-Mar-10 20:17
coding freaks10-Mar-10 20:17 
QuestionText Files Pin
Darrall10-Mar-10 12:55
Darrall10-Mar-10 12:55 
AnswerRe: Text Files Pin
DaveyM6910-Mar-10 14:16
professionalDaveyM6910-Mar-10 14:16 
GeneralRe: Text Files Pin
Darrall10-Mar-10 14:36
Darrall10-Mar-10 14:36 
QuestionLooping through Dataset instead of DataGridView? Pin
Eagle3210-Mar-10 11:48
Eagle3210-Mar-10 11:48 
Hi,

I would like to loop through the DataSet at runtime to retrieve selected values and store them in local variables but i am not sure how i could do this using DataSet that is generated using the inbuilt wizard. I am using SQL Server Compact. My database has "*.sdf" extension. I created a strongly typed DataSet using the wizard. So in the solution explorer i can see the DataSet and it has an extension of "*.xsd".

At the moment i am doing this:

foreach(DataGridViewRow dgvrow in CustomerGridView.Rows)
{
  //e.g to get surname
  String Surname = dgvrow.Cells[2].Value.ToString();
  //do some other stuff here too

}


Wouldnt it be more efficient if i looped through the DataSet that I have created? If so, how would i go about doing this based on the above code.

If anybody could assist me with this, it would be much appreciated.

Thanks,
AnswerRe: Looping through Dataset instead of DataGridView? Pin
Dan Mos10-Mar-10 12:03
Dan Mos10-Mar-10 12:03 
GeneralRe: Looping through Dataset instead of DataGridView? Pin
Eagle3210-Mar-10 12:11
Eagle3210-Mar-10 12:11 
GeneralRe: Looping through Dataset instead of DataGridView?[modified] Pin
Dan Mos10-Mar-10 12:24
Dan Mos10-Mar-10 12:24 
GeneralRe: Looping through Dataset instead of DataGridView Pin
Som Shekhar10-Mar-10 18:13
Som Shekhar10-Mar-10 18:13 
GeneralRe: Looping through Dataset instead of DataGridView Pin
Eagle3211-Mar-10 12:02
Eagle3211-Mar-10 12:02 
GeneralRe: Looping through Dataset instead of DataGridView Pin
Som Shekhar11-Mar-10 18:06
Som Shekhar11-Mar-10 18:06 
QuestionClass properties - how to change values from form Pin
peropata10-Mar-10 10:32
peropata10-Mar-10 10:32 
AnswerRe: Class properties - how to change values from form Pin
Dan Mos10-Mar-10 10:44
Dan Mos10-Mar-10 10:44 
GeneralRe: Class properties - how to change values from form Pin
peropata10-Mar-10 11:46
peropata10-Mar-10 11:46 
GeneralRe: Class properties - how to change values from form Pin
Dan Mos10-Mar-10 12:10
Dan Mos10-Mar-10 12:10 
GeneralRe: Class properties - how to change values from form Pin
peropata10-Mar-10 19:54
peropata10-Mar-10 19:54 
QuestionC# dataset/adapter connection Pin
2010JohnFByers10-Mar-10 9:50
2010JohnFByers10-Mar-10 9:50 
AnswerRe: C# dataset/adapter connection Pin
Dan Mos10-Mar-10 10:09
Dan Mos10-Mar-10 10:09 
GeneralRe: C# dataset/adapter connection Pin
2010JohnFByers10-Mar-10 11:16
2010JohnFByers10-Mar-10 11:16 
GeneralRe: C# dataset/adapter connection Pin
Dan Mos10-Mar-10 11:30
Dan Mos10-Mar-10 11:30 
QuestionSet the SelectedItem of a populated DataGridViewComboBoxCell Pin
Member 226514810-Mar-10 7:44
Member 226514810-Mar-10 7:44 
QuestionCreating a list of complex object from two lists [modified] Pin
dan!sh 10-Mar-10 6:58
professional dan!sh 10-Mar-10 6:58 

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.