Questions tagged [datagridcomboboxcolumn]

The DataGridComboBoxColumn is a DataGridColumn implementation for ComboBox'able cells

Learn more about DataGridComboBoxColumn on MSDN.

330 questions
0
votes
2 answers

Datagridcomboboxcolumn bind to ObservableCollection in item of Datagrid source

I have datagrid with two columns: text and combobox. And combobox should have binding to observable collection. This is pseudocode for datagrid items source: public class ModeObjectState { public int ID { get; set; } public…
drmckay-
  • 215
  • 1
  • 2
  • 11
0
votes
1 answer

DataGridColumn Change to ComboBox

I have list usrdetails that I'm using as my data source for my DataGridview. Two questions: How can I change the column type for the 3rd Column in my DataGridview from a DataGridTextBoxColumn to a DataGridComboBoxColumn? Once I've changed the 3rd…
user3254596
  • 43
  • 1
  • 5
0
votes
0 answers

how to get selected item in combobox within datagridview in vb.net

I have a window form, in which there are a no of textboxes, other control and a datagrid view. Datagrid view have 3 column. one colume is bind with combobox and two other with textboxes. Data comes in combobox is bind from a table. Table name is…
0
votes
1 answer

WPF and DataGridComboBox

I'm getting in such a mess with using a Combobox in a WPF grid. I'm trying to implement a simple Contact form which allows the user to select a Salutation from a Combobox. class Contact { .. public int SalutationID { get {…
0
votes
0 answers

EditControlShowing not adding items to ComboBox

I am adding items to my ComboBox (inside a DataGridView) dynamically. When the EditControlShowing event fires I am able to load all the items into the list correctly, but every time I make a selection change only my first item remains in the combo…
Rahul Kishore
  • 380
  • 1
  • 8
  • 19
0
votes
2 answers

How to create DataGrid with ComboBoxColumn using other DataContext than Grid itself?

I am pretty new to WPF and I am stuck on this one, I couldn't find anything that helped me solve my problem. I am trying to create DataGrid where I would like to compare multpiple people from imported file to people in database. My idea of that was…
user3146472
  • 383
  • 1
  • 5
  • 16
0
votes
2 answers

Binded ComboBox with DataSource

I'm trying to populate the datasource from my combobox with following code: Here is the part where I create my binding _columnsLayoutBinding.DataSource = _myColumnsLayout; ColumnsLayoutDataGrid.DataSource = _columnsLayoutBinding; …
0
votes
3 answers

Extracting specific string from combobox select

I have a combobox for an item list that I populate using the following code: List comboboxItems = new List(); foreach (var p in products) { var x = p.Product; foreach (var pn in x) { comboboxItems.Add(pn.name + "…
Kinyanjui Kamau
  • 1,890
  • 10
  • 55
  • 95
0
votes
0 answers

Cant see the comboxcolumn in my datagrid

I have a datagrid that is bind to a observable collection: System.Collections.ObjectModel.ObservableCollection vadcGridList = new System.Collections.ObjectModel.ObservableCollection(); The class of…
amirm
  • 41
  • 1
  • 11
0
votes
1 answer

Bind ViewModel property to DataGridComboBoxColum

I am trying to use an enum in a Datagrid. Let me show you two ways that it can work. First, I create a ComboBox inside the DataGrid, the DataContext.MyOptions returns a list of Strings for all values of enum.
uncletall
  • 6,609
  • 1
  • 27
  • 52
0
votes
0 answers

WPF Datagrid SelectedItem loses binding after edit

EDITED: As comments have suggested, I should implement the MVVM pattern, I have done exactly that. However the same problem still persists. So I have altered the question accordingly: I have a datagrid containing two columns bound to an observable…
0
votes
0 answers

Telerik Radgridview comboboxcolumn and selectedindexchangedevent

Good days, How can i create telerik radgridview combobox column and add listen selected indexchanged event method of combobox?
0
votes
0 answers

Combobox's list not in proper position

I am using spark's combobox as Itemeditor in advance datagrid. It is working properly but fails to open properly when the Combobox is opened near the bottom of the Flex Object. It tends to open upwards for the first time (which is perfectly fine)…
0
votes
0 answers

Set check on chckbox of a Gridcol when setting ItemSource

I have bounded DataGrid, in which I have CheckBoxColumn as its 1st col and Checkbox in header. If that is checked then the data of that row is retrieved. The code is :
Tvd
  • 4,463
  • 18
  • 79
  • 125
0
votes
1 answer

WPF DataGridComboBoxColumn does not display text if it is not in ItemsSource

In my C# WPF application I programmatically add a ComboBoxColumn to a DataGrid: public static DataGridComboBoxColumn getCboCol(string colName, Binding textBinding) { List statusItemsList = new StatusStrList(); DataGridComboBoxColumn…
Christian St.
  • 1,751
  • 2
  • 22
  • 41