Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many rows in a datagrid?
Message
From
30/10/2003 07:49:24
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, United States
 
 
To
29/10/2003 22:00:34
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00844332
Message ID:
00844462
Views:
15
Bonnie,

Oops! I missed the keyword windows. I didn't realize they would be that different. Thanks for keeping me straight.

Jacci


>Hi Jacci,
>
>Nope, that's only in WebForm Grids. WinForm Grids don't have an Items collection and I don't know for sure whether there's a way for Christopher to do what he wants to do with a WinForm Grid. I've done it by iterating through the DataSource, but he's looking for another way.
>
>~~Bonnie
>
>
>>Hi Christopher,
>>
>>You could try this I can't remember the exact syntax. I'm at home right now and I don't have .NET on my home machine. There is a good sample in the help (hightlight GridItem and press F1):
>>
>>
>>Dim grdItem as GridItem
>>Dim intCount as Int32
>>
>>intCount = 1
>>For each grdItem in DataGrid1.Items
>> intCount += 1
>>End For
>>

>>
>>HTH,
>>
>>Jacci
>>
>>>Anyone know how to get the row count of a windows from datagrid without looking to it's datasource?
>>>I see currentrow, visiblerows but nothing for rowcount.
>>>
>>>
>>>I'm looking for a way to iterate through a datagrid and I don't wnat to look at the data source to know when to stop.
>>>
>>>Thanks,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform