Hello,
I am trying to associate a combobox with a DataGrid. I am creating a dynamic table and adding it to a dataset. The datagrid uses this dataset as the datasource. For instance:
DataGrid.DataSource = Dataset.Tables("NewCase")
In the table I have several text columns (the default) and need some of the columns to be comboboxes. I tried using DataGridTableStyle to add the combobox colums. When I do this it wipes out the data colums that I have from my datatable and replaces it with the comobox style col.
Also, to create the Combobox columns I am using a class code that I found on the net called DataGridComboBoxColumn. I am really confused with this whole ordeal. Can someone please guide me in right direction. Also, can I just create a combobox without having to use external classes, and just link it to my current table.
Thank you for your time and any help is appreciated.
I am trying to associate a combobox with a DataGrid. I am creating a dynamic table and adding it to a dataset. The datagrid uses this dataset as the datasource. For instance:
DataGrid.DataSource = Dataset.Tables("NewCase")
In the table I have several text columns (the default) and need some of the columns to be comboboxes. I tried using DataGridTableStyle to add the combobox colums. When I do this it wipes out the data colums that I have from my datatable and replaces it with the comobox style col.
Also, to create the Combobox columns I am using a class code that I found on the net called DataGridComboBoxColumn. I am really confused with this whole ordeal. Can someone please guide me in right direction. Also, can I just create a combobox without having to use external classes, and just link it to my current table.
Thank you for your time and any help is appreciated.