Questions tagged [datagridcomboboxcolumn]

The DataGridComboBoxColumn is a DataGridColumn implementation for ComboBox'able cells

Learn more about DataGridComboBoxColumn on MSDN.

330 questions
0
votes
3 answers

Selected item not displayed in the DataGridComboBoxColumn

I have a DataGrid with two DataGridComboBoxColumns set in the XAML (copied from here):
badmaash
  • 4,775
  • 7
  • 46
  • 61
0
votes
2 answers

Unbound DataGridView : Need ComboBox In cell of 2nd column only when user clicks cell

I have a unbound DataGridView with two columns. First column is just string values. Second column I want to display a combobox, only when user click the cell(not the whole column as DataGridViewColumn). I use the below code which is incorrect and…
0
votes
1 answer

Set the highlighted item in the comboBox's dropdown list as the current value on cell exit or cell leave

private void dataGridViewSales_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { if (this.dataGridViewSales.CurrentCell.ColumnIndex == 1) { ComboBox c = e.Control as ComboBox; …
StackTrace
  • 9,190
  • 36
  • 114
  • 202
0
votes
2 answers

How to save changes to WPF datagrid showing data form 2 joined tables?

I have 2 tables: Person: p_id p_name c_id Car: c_id c_name Here is my XAML tag: And here is the…
nvcnvn
  • 4,991
  • 8
  • 49
  • 77
0
votes
2 answers

Silverlight Binding DataGridComboBoxColumn Xaml SQL

I bind a ComboBox in a DataGrid with SQL data. Xaml code
0
votes
1 answer

DataTemplate duplication across different DataGrid rows

I have a WPF 4 DataGrid whereby the first ComboBox changes what the second ComboBox is bound to by using a DataTemplateSelector keying off an id. For some strange reason, any cell in the second column, of the same type, seems to bind to the same…
0
votes
1 answer

Sort Silverlight DataGridComboBoxColumn by DisplayValue

I have SL DataGridComboboxColumn. I have set the SortMemberPath same as the DisplayMemberPath; and the sort doesn't happen. If I set the SortMemberPath same as ValueMemberPath, sort happens. But I need the sort to work as per DisplayMember. I tried…
-1
votes
1 answer

How to show dropdown arrow in synfusion datagrid

I made a combobox column in syncfusion Datagrid, but comboBox is only active when using trigger I wanna see ComboBoxColumn intuitively like second picutre Now i want like this
-1
votes
1 answer

How do we display data from database into DataGridViewComboBoxColumn in Windows form C#?

How do we display data from database into DataGridViewComboBoxColumn in Windows form C#? My database table ticket looks like this: I want to display it into my dataGridView which has two DataGridViewComboBoxColumn named cbxSeverity and…
lance2k
  • 357
  • 1
  • 4
  • 14
-1
votes
1 answer

DataGridComboBoxColumn opens after 2 mouse clicks

I have a datagrid and it has DataGridComboBoxColumn like below. When i open datagrid, 2 mouse clicks show the combox. How to show combobox when datagrid is loaded without click.
nihasmata
  • 652
  • 1
  • 8
  • 28
-1
votes
2 answers

WPF Combox in DataGrid - SelectionChanged event returning selected ComboBoxItem as null

Question: Inside the SelectionChanged event of Combobox in DataGrid, the ComboboxItem is always null. What I may be missing and how we can fix the issue? Please note that (as shown in image 1) if you are able to select an item from the combobox,…
nam
  • 21,967
  • 37
  • 158
  • 332
-1
votes
1 answer

Can't figure out how to get a column to appear as a Combobox with static options

private List mylist = new List(new string[] { "Visitor Seen", "Update Reason", "Ghost Sighted! HELP!" }); private void setupDataGridView() { dataGridView1.Columns.Add("ID", "Visitor ID"); …
software is fun
  • 7,286
  • 18
  • 71
  • 129
-1
votes
1 answer

Gridcontrol becomes blank

I am using open source code "GridCellCombo.cpp" for grid control. I am stuck with issue. When we click on the combobox sporadically combo box becomes blank. It will not display any items. When I debugged I found that in EndEdit closing the window is…
AKJ
  • 65
  • 1
  • 6
-1
votes
1 answer

Databind itemsource of DataGridComboBoxColumn to collection in view model does not work

What I am trying to do here is databind the Itemsource of a DataGridComboBoxColumn to a collection of strings declared as property of my item view model. The Datagrid itself is bound to another viewmodel which has a collection of viewModels that…
Raoul_W
  • 11
  • 4
-1
votes
1 answer

Binding the value of a column cell to another column value

I want to bind the value of cells in one column to another column in a datagridview. The 1st column is Team and the other is Assignment. I want to set the the selected value (Assignment.Value; teamComboBox.ValueMember ) = (Team.Value;…
ghost_king
  • 870
  • 2
  • 12
  • 24
1 2 3
21
22