Hi,
I've got a webgrid with 2 bands in it. I've put a single column containing checkboxes in the first band and the second band I just want to able to bind a datatable to and have it dynamically generate the column headers.
However when I bind the data to the grid it's binding it into the first band not the second.
Is there any way to force the data to bind to the second band?
Specifying the column headers at design time isn't an option for me.
Thanks.
You can't have a combination of Bound/Unbound span across bands, which is probably why it appears that the databind is applying to the top level. You'll either have to bind the entire grid, or manually populate the entire grid.
Hope this helps,
-Tony
Thanks Tony, I had a feeling that might be the case.
In trying to get around this then I've accepted that the checkbox column will always be the first column in the grid.
I iterate through the rows in the column and check each row to see if the checkbox value is true or false and set the row to be selected accordingly, that bit is working fine for me.
However, I then hide the column and try to copy each row, this is where it's falling down on me. If I don't hide the column it works fine but when I do hide the column the copy fails.
Is there any way around this? Basically I need to be able to copy the row without copying the value of the checkbox column. I could do it by going into the clipboard and removing the true/false but I'd rather avoid that if I can at all.
Thanks,
Colette