Tag property null after filter applied.
JackSadowski opened this issue · 2 comments
Hello,
My problem has to do with the row Tag property becoming null after filter is applied.
I populate the grid with a DataTable via BindingSource. I then set each row's Tag property to an object. Then I apply filter to one of the columns.
I then click on one of the rows to generate MouseDown event.
Inside the handler, I look at SelectedRows. Each row's Tag property is null.
Can you help?
Thank you,
Jack
Found my problem. Apparently, Tag property can be lost after filtering DataGridView. It has to do with internal rows management by the control.
Thanks for sharing your solution.
As a note: If you are using Tag for additional information a trick could be add columns that contains that infomation, but hide that columns on the grid.