Hope someone can help, this is really kicking my butt.
I have a DataGridView I'm displaying in my VB.NET 2008 application. I'm not having any problem displaying data from the datatable being used as a datasource, but I do have a column in the grid that is supposed to be a drop-down listbox allowing the user to select one of several options that affect the selected row later on.
I have the DataGridView column set to DataGridViewComboBoxColumn, and I can see at design time there is a way to preset a number of list values for the column. Unfortunately for me I do not know ahead of time what the values ought to be, I need to assign them during execution from another datatable (string values).
For the life of me I cannot figure out how to do this, I've been looking all day at examples on the web and I'm more confused now than when I started. Can anyone provide me with a clear example of how to do this? Thank you if you can.
Craig
CraigHartz
I have a DataGridView I'm displaying in my VB.NET 2008 application. I'm not having any problem displaying data from the datatable being used as a datasource, but I do have a column in the grid that is supposed to be a drop-down listbox allowing the user to select one of several options that affect the selected row later on.
I have the DataGridView column set to DataGridViewComboBoxColumn, and I can see at design time there is a way to preset a number of list values for the column. Unfortunately for me I do not know ahead of time what the values ought to be, I need to assign them during execution from another datatable (string values).
For the life of me I cannot figure out how to do this, I've been looking all day at examples on the web and I'm more confused now than when I started. Can anyone provide me with a clear example of how to do this? Thank you if you can.
Craig
CraigHartz