Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Associating a combobox with Datagrid

Status
Not open for further replies.

Yogeetarp

Programmer
Jun 7, 2006
10
US
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.

 
When do you want them to do be comboboxes? All the time or just in Edit mode?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top