Hello everybody, I've been using flygrids for a few months now and now I'm getting more and more complicated tasks. If anyone can help me with the following questions I'd really appreciate it.
1. I have a read-only flygrid that I populate using a couple datatables from flyGrid1_VirtualMode_GetNodeCellValue function. It shows up fine...but when the user clicks on a button, I want to clear out all the data, re-populate the datatables...and re-populate the flygrid. It gives me a null error sometimes. Does anyone know the proper way to clear out and repopulate a grid? What I started doing is removing and disposing every element in flygrid1.Rows.Items...and this works, but it is way too time consuming.
2. This is the more important question. You see, my flygrid is two layers...that means you have a set of columns and a set of nested columns. I want to be able to have a different set of nested columns for some rows. That means the top level is always the same, the nested set may have three or five columns (some may have three...some would have five). Is this possible? If so, can someone tell me how to set this up?
Here is pictorial diagram of what I'm trying to do:
+ col1 col2 col3
- col1 col2 col3
------ subcol1 subcol2 subcol3
+ col1 col2 col3
- col1 col2 col3
------ differentsubcol1 differentsubcol2 differentsubcol3 subcol4 subcol5
If anyone can help me I'd really appreciate it
Thanks in advance