I’m binding ListView control to DataTable. The DataTable have a column named ProductID. Is there any way to hide this column, because I’m gonna need it’s value later?
I’m binding ListView control to DataTable. The DataTable have a column named ProductID. Is
Share
I’ll just address the UI angle. You can hide it by setting the column width to 0. For example, if the ID is bound to the 2nd column:
It’s not quite ideal, the user can get confuzzled by the ‘splitter’ cursor that shows up when she’s a bit too far to the right of the column divider. That’s very hard to fix.