Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01169045
Message ID:
01170127
Views:
13
Thansk Kevin!

I'll try what you have suggested.

>Jess,
>
>>I haven't asked them yet but at the moment, I decided to make do with the SelectedRowCollections and Selected.Rows of the grid. The only problem that I am about to solve now is: what if a dataset is not bound to a grid control? How can I go through all the data rows of a datatable? I am trying to to look something that is similar to the Scan...EndScan of VFP.
>
>You can cycle through the rows in a DataTable like this:
>
>
foreach (DataRow Row in dt.Rows)
>{
>
>}
>
>You can search for a specific DataRow in a DataTable in one of two ways:
>
>1. If you have the primary key, use the Find() method of the data table. For example:
>
>
DataRow Row = dt.Rows.Find(pkValue);
>
>2. If you don't have the primary key, use the Select method of the DataTable. For example:
>
>
DataRow[] Rows  = dt.Select("FirstName = 'Jess'");
>
>Best Regards,
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View