Hey all.
I have a question that's been burning in my head (and my code) for a lil while now... hopefully someone can help me (before I go nuts)
I have a custom object being returned by a webservice. I nab that custom object into a datagrid in my client app. All is good and fine with that, works quite nicely.. the problem is, I need to populate a checkedlistbox with that datagrid.
So, I can either figure out how to use a datagrid as the source for the checkedlistbox (not easy with IList being required and such), or I can run through the datagrid (using it like a recordset) and populate the checkedlistbox. I can currently chuck in as many records as I want into the checkedlistbox from the datagrid, one at a time... this is wonderful, until I go past the end of the datagrid and it blows up on me.
So, my question... how can I find the rowcount on a datagrid?? Or if anyone has any suggestions on other ways to do this, I'm MORE than open to ideas.
Cheers all.![]()




)
Reply With Quote