Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to: Refer to the values from a column
Message
From
10/05/2004 11:14:34
John Baird
Coatesville, Pennsylvania, United States
 
 
To
10/05/2004 09:48:47
Bill Benton
North Florida Software Services
Middleburg, Florida, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00902399
Message ID:
00902442
Views:
16
Here is a small sample that compares the row values and takes action:
DataTable dtSelected = dsMap.Tables[0].Copy();
foreach(DataRow dr in dtSelected.Rows)
     if((Int32)dr["col_order"] == 0)
          dr.Delete();
In this sample, I use a copy of the table, because I am deleting rows and don't want to update the base table with the changes.

You should also check out the following link. They have tons of info on datagrids and using datasets.




>Data values. I am pulling my hair out (and I can't afford to lose much more) attempting to work with datasets.
>
>>I spent all weekend struggling with this. What values are you trying to return? Column properties like width, alignment, etc or data values from the rows in the column?
>>
>>
>>
>>>I am having difficulty referring the the values from a column in a dataset. It's probably something simple, but it has me stumped.
Previous
Reply
Map
View

Click here to load this message in the networking platform