ComboBox Column
-
Hi , I have a datagridview(dgv) populating data from the database. The dgv also has a checkbox column to select rows and the form has a update button to update the selected rows. I want to change the dgv column to a combobox column to allow the users to select from the dropdown and update the value of the column. How can i achieve this,, I hope this makes sense. Thanks,.
-
Hi , I have a datagridview(dgv) populating data from the database. The dgv also has a checkbox column to select rows and the form has a update button to update the selected rows. I want to change the dgv column to a combobox column to allow the users to select from the dropdown and update the value of the column. How can i achieve this,, I hope this makes sense. Thanks,.
-
Thanks for it, But i would like to convert the dgv column into combobox column when the checkbox is checked for a particular row. (C# Please) how to convert dgv column to dgv combobox column which shows the drplist items as in the table.
-
Thanks for it, But i would like to convert the dgv column into combobox column when the checkbox is checked for a particular row. (C# Please) how to convert dgv column to dgv combobox column which shows the drplist items as in the table.
spankyleo123 wrote:
convert the dgv column into combobox column
As a thought, will setting the visibility help you out? You cannot convert a column into a combobox - you can show and hide different user controls.
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest.
Honestly. It's the honest ones you want to watch out for... -
spankyleo123 wrote:
convert the dgv column into combobox column
As a thought, will setting the visibility help you out? You cannot convert a column into a combobox - you can show and hide different user controls.
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest.
Honestly. It's the honest ones you want to watch out for...yeah i tried something like this
dgv.Columns[6].Visible = false; testComboColumn.Visible = true; testComboColumn.DataSource = tmx.tbTest; testComboColumn.DisplayMember = "Text"; testComboColumn.ValueMember = "ID";
is it possible to show the combobox list only for the select row? -
yeah i tried something like this
dgv.Columns[6].Visible = false; testComboColumn.Visible = true; testComboColumn.DataSource = tmx.tbTest; testComboColumn.DisplayMember = "Text"; testComboColumn.ValueMember = "ID";
is it possible to show the combobox list only for the select row?