I have a bad error when setting GridViews HeaderRow.TableSection to TableRowSection.TableHeader: The table must contain row sections in order of header, body, then footer.
Please, note, that I do it in grids DataBound event handler and I do NOT use paging. How can it be?
Thank you,
First you should set type of the first row to header when it will created :
Now You Can Do this :