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 I sort the datagridview by clicking the column header, these rowheadercell values disappear...
anybody knows how to keep the row header values after the sorting? thanks a lot!!
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 I sort the datagridview by clicking the column header, these rowheadercell values disappear...
anybody knows how to keep the row header values after the sorting? thanks a lot!!
Comment