I am using windows forms application. I have two combo boxes , comboA and comboB.I have a datagrid view with two columns. Now I have to populate the datagrid view, with selected item from comboA into first column of datagridview and selected item of comboB into the second column. Please suggest me
To be clear, When I select an item from comboA, it should be displayed in first column of datagridview. And similary when i select an item from comboB , it should be displayed in the second column of the datagridview.
Related
I want create a custom DataGridView Columns with this Properties :
Multi Columns Dropdown
Dropdown Show Data From Database ' %Like%'
ComboBox Columns is Typeable
can someone Guide and Help Me
i have desktop application in which i am using data gridview control. i want to use a combo-box in each grid row that holds 2 items (Sale, Return). i am as far as single row concerns, i am not getting any issue but when i enter any other row, it shows me double comboboxes in each row and tripple for third row and so on.
second issue that i am facing is that i am not getting both of two items that i am trying to insert through items.add method. below is code that i am using to insert combobox column in grid
custCartGrid.Rows.Add();
GridRow = custCartGrid.Rows.Count-1;
DataGridViewComboBoxColumn dcom = new DataGridViewComboBoxColumn();
dcom.HeaderText = "Combobox";
dcom.Items.Add("Sale");
dcom.Items.Add("Return");
custCartGrid.Columns.Add(dcom);
please help me in this..
I have a problem with GridViewComboBox column. For each row in GridViewComboBox has different items. When I select an item in first row of GridViewComboBox the items are displayed under the GridViewComboBox correctly but for the second time the the items are displayed at some other place of windows form and not in the GridView.
Any idea why this is happening?
I have ListView control, where I displaying some binded multicolumn data. When user click to some row, all of the columns is highlighting. How to exclude first column from this highlight?
How to alternate DataSource in ComboBox Column inside Devexpress GridView by selecting value in other ComboBox column in same row.
It is something like cascading comboboxes but in Grid view (but in grid comboboxses don't have CallbackRouteValues property)
Grid has two comboboxes and if user selects one value in frst the second combobox must change datasource by function that takes id as parameter from first selected combobox
You want to use a LookUpEdit instead of ComboBox when you are using a datasource, then you can use the QueryPopUp event to set a filter to, or change your datasource.
Note that when you change the datasource for the LookUpEdit, the result in the grid might not look what you expected. To remedy that, you want to clear your filter in the QueryCloseUp event.