Questions tagged [datagridcomboboxcolumn]

The DataGridComboBoxColumn is a DataGridColumn implementation for ComboBox'able cells

Learn more about DataGridComboBoxColumn on MSDN.

330 questions
4
votes
3 answers

DataGridComboBoxColumn cell not displaying selected item text?

I was wondering how you get the DataGridComboBoxColumn to display the selected item text when it is not in editing mode? And also is it possible to make it so the combo box in edit mode displays the selected item text initially? Here is my…
Alex Hope O'Connor
  • 9,354
  • 22
  • 69
  • 112
4
votes
3 answers

Setting DropDown list width of DataGridView ComboBoxColumn - WinForms

I'm having a datagridview with combobox column in it. This column is databound. I want to set the width of the dropdown list as per the largest item width in the list. For a normal combobox to achieve the same I've used a extension method which will…
JPReddy
  • 63,233
  • 16
  • 64
  • 93
4
votes
1 answer

WPF DataGridComboBoxColumn`s ComboBox is only visible when DataGrid has IsReadOnly=FALSE

Why is the ComboBox in that column only visible via double-click in the empty cell when the DataGrid is set to IsReadOnly = FALSE ??? using a DataTemplateColumn works as…
msfanboy
  • 5,273
  • 13
  • 69
  • 120
4
votes
1 answer

C# creating 2 rows, the first one is a text view list and the second is a comb box list

My project is a C# application to import data from an excel sheet to the database and prompt the user to map them manually. I need to create two rows: The first row is a DataGridTextColumn where the excel's headers fit to. The second row is a…
4
votes
1 answer

Binding to DataGridComboBoxColumn from collection

Trying to bind to a collection in WPF, I got the following to work: XAML: CS: namespace DataGrid { /// /// Interaction logic for Window1.xaml /// public partial class…
baron
  • 11,011
  • 20
  • 54
  • 88
4
votes
2 answers

show some static values in wpf datagrid combobox column

I am trying to use a DataGrid whose first column is a ComboxBox. This ComboxBox has a hardcoded static values, possible values are: Employee, Contractor, Supplier How can I show some static values in the DataGrid without binding to a DataSource. I…
VNarasimhaM
  • 1,460
  • 3
  • 22
  • 36
4
votes
2 answers

Binding SelectedItem of ComboBox in DataGrid with different type

I have a DataGrid which contains ComboBox as column. Let consider DataGrid having ItemsSource as ObservableCollection and ComboBox ItemsSource is List . I want to set the ComboBox SelectedItem property based on property in DataGrid ItemsSource.…
Mahesh
  • 402
  • 2
  • 5
  • 16
4
votes
1 answer

Why is my DataGridComboBoxColumn clearing its value when I navigate away from it?

I have a DataGrid with two columns: DataGridComboBoxColumn DataGridTextColumn. I have set up data validation so that if one has a value, the other will be in error until it also has a value. The validation is silly, but it provides some…
Matt Zappitello
  • 785
  • 2
  • 11
  • 30
3
votes
3 answers

How do I implement a multicolumn ComboBox DataGridColumn in a WPF DataGrid?

I have a simple question that I assume does not have a simple solution. I need to have a multi-column ComboBox for some grid columns in my WPF DataGrid. Is there a known best-practice to accomplish this? From what I have gathered this will require…
user861497
3
votes
2 answers

WPF Datagrid ComboBox DataBinding

Can anyone tell me why this works;
Stafford Williams
  • 9,696
  • 8
  • 50
  • 101
3
votes
1 answer

access the Window's DataContext from within a DataGrid

I have some problem to access the Window's DataContext from within a DataGrid. The DataGrid is bound to a IBindingList: public IBindingList Items{ get; set; } private void initItems() { //ItemFactory is a Linq2SQL Context, Items is…
SwissCoder
  • 2,514
  • 4
  • 28
  • 40
3
votes
1 answer

DataGridComboBoxColumn not updating model WPF

I'm using Datagrid in WPF and DataGridComboBoxColumn. Please find the code below: ...
3
votes
1 answer

Positioning cursor in a GridViewComboBoxColumn (Telerik)

I'm using a RadGridView which has a view GridViewComboBoxColumn s inside. The editor itself is a custom editor based upon: RadDropDownListEditor. I'm currently trying to implement it so that pressing left or right arrow does not affect the cell or…
Thomas
  • 2,886
  • 3
  • 34
  • 78
3
votes
3 answers

DataGrid: How to manipulate selected item

This must be simple but all my searching leads to binding-based solutions, which is not my case. I have a DataGrid in which there is a DataGridComboBoxColumn. This column's ItemsSource property is bound to a string array. I use a loop in the startup…
dotNET
  • 33,414
  • 24
  • 162
  • 251
3
votes
2 answers

How to expand the ComboBox in a (WPF) DataGridComboBoxColumn?

In my C# WPF application (.NET 4.0) I have a DataGrid dynamically filled from code including a DataGridComboBoxColumn: public static DataGridComboBoxColumn getCboCol(string colName, Binding textBinding) { List statusItemsList = new…
Christian St.
  • 1,751
  • 2
  • 22
  • 41
1
2
3
21 22