Steve,
Generally speaking, you know that the datagrid is bound to an IList
implementation. You can cast the DataSource object to IList (or IListSource
perhaps) and then get the number of items from there.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message
news:E1**********************************@microsof t.com...
Can someone tell me how you determine the number of rows (or columns) are
in
a datagrid? Under the debugger I say the property DataGridRows (which is
what I want) but it doesn't appear to be usable within code. Its
protection
level makes it inacccessible.
--
Steve