Unbound column value disappears from DataGridView in sort

I have a DataGridView bound to a DataTable (it's bound to a List (from T), but a DataGridView is much more efficient).

I add an additional DataGridViewLinkColumn to the DataGridView (the value of this column is set to the value of one of the related columns, I just need to show it as a link).

The problem is that I sort the DataGridView by clicking on the header, the values ​​are cleared in a column that is not deleted.

Do I need to loop through each row to reset the values, or is there a better way to get the DataGridViewLinkColumn as one of my related columns?

+3
source share
1 answer

"TRow" , T, DataTable TRow. unbound .

+3

Source: https://habr.com/ru/post/1723787/


All Articles