Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
GroupBy and retrieving Rows
posted

 

Hi,
 
I ran into a problem where I have a grid which is populated with a BindingList<> of simple objects. I would have a user then click a button and I would iterate over the Grid.Rows property retrieving cell information, all was good until I enabled GroupBy.
 
I then found that the Grid.Rows collection now only had one row in it with IsGroupBy set to true and a hierarchical tree of data now available via its ChildBands property - dependant on howmany times the user decided to GroupBy.
 
Is there a way where I can still allow users to GroupBy but still access the flat hierarchical data as I was before? Instead of what I am guessing is going to be a recursive tree walk? Note I used an unbound column in my data so accesing the datasource directly I believe won't help.
 
Any ideas - as I am sure there has to be an easier way and that I am over complicating things?
 
If it helps clarify I have a list of people and an unbound boolean column  to select those people. I then wish to iterate over the rows and pull data out if the unbound column is checked or not. This I can do, the only snag is there are other columns available for the person for which the user can group by - but I still wish to iterate over the full list of people and using the unbound column value retrieve their details.
Parents Reply Children
No Data