I would like to implement Virtual mode on a DataGridView. The issue is that I'm not sure how to bind to ONLY the ID column in my DataTable without binding to the whole table.
Adding combobox or textbox columns and handling the CellValueNeeded event is not a problem, I've done that elsewhere in my program.
I would like to use something like
, but no data is displayed.
Is there a way to bind to a single column of data, instead of binding to the whole table and hiding all the (non-custom) columns?
Adding combobox or textbox columns and handling the CellValueNeeded event is not a problem, I've done that elsewhere in my program.
I would like to use something like
Code:
DataGridView.DataSource = MyDataset.Tables("TableName").Columns("ID")
Is there a way to bind to a single column of data, instead of binding to the whole table and hiding all the (non-custom) columns?
Comment