thanks! so my understanding is that the header text is not bound to the gridview datasource, and sorting will erase all the older rows in the gridview, and reload from the datasource, is that correct?
I don't know how to create an OnDataBinding event, but i worked around by re-creating header text on sorted event. it works now... thanks again for your help....
User Profile
Collapse
-
problems with datagridview rowheader value
I have an application where a datagridview is used to display some data, a datatable is bounded to it, and i want to put some text in the front of some rows to indicate that they are different from others.
my code checks the rows and used the following
mydatagridview. Rows.Item(iCnt) .HeaderCell.Val ue = "A"
to set the row header values, it was fine when the data was first loaded. however, when...
No activity results to display
Show More
Leave a comment: