datagridcomboboxcolumn Questions

4

Solved

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 achi...

3

Solved

I have a Winforms application which has a DataGridView. The DataGridView is not bound to a datasource. I'm reading a text file and according to each line in the file, I'm placing the values of each...
Husbandry asked 10/5, 2015 at 22:19

2

Solved

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 p...
Mcmullen asked 22/5, 2013 at 16:33

8

Solved

I have two simple Model classes and a ViewModel... public class GridItem { public string Name { get; set; } public int CompanyID { get; set; } } public class CompanyItem { public int ID { get;...
Equip asked 23/3, 2011 at 17:28

4

Solved

I want to enable the user to edit some data in WPF DataGrid ( from the .net Framework 4.0). The "instruments" column should allow the user to select an available intrument from a static list or to ...
Amoritta asked 1/8, 2011 at 14:12

3

Solved

I'm trying to alter the ElementStyle of a DataGrid ComboBox column. Supposedly the Style is really of type TextBlock when the control is not being edited. So as shown in other examples, I've tried:...
Otoscope asked 16/8, 2013 at 20:14

3

Here the question similar to my question is asked, but I did not find the solution there. My Question : How to bind different data(say Lists) to the "DataGridComboBoxColumn" for each ComboBox in ...
Bullate asked 8/9, 2016 at 16:4

2

Solved

I have 3 tables: Item - which is the DataContext - it has a navigation column Group Group - has a navigation column Category. I want to have in the DataGrid both (Category & Group) columns and...
Tashinatashkent asked 12/11, 2009 at 17:59

0

I am trying to give a new ItemsSource to a DataGridComboBoxColumn in a specific row in my program when the selection of an other DataGridComboBoxColumn in the same row is changed. The problem is th...
Alexalexa asked 29/2, 2016 at 19:55

1

When I click a cell in my DataGridComboBoxColumn the ComboBox gets visible and I can select items. When I have selected an item its visible at the top thats fine. But when the cell aka ComboBox los...
Sealskin asked 20/6, 2010 at 20:56

3

This is driving me crazy. I have a DataGrid which has a DataGridComboBoxColumn which I want the user to be able to use to select from. This is the basic outline of my grid. <DataGrid ItemsSourc...
Slew asked 25/8, 2010 at 6:24

2

Solved

I have trouble reading the field. I have tried in different ways but still can not. I want to read the value that the user selected the following 3 values. Code in XAML <DataGridComboBoxColumn...
Cl asked 25/9, 2013 at 11:1

2

Solved

I have a datagrid with 2 columns. One column contains role information, the other column should have a combo box with a list of available users. The data in the combobox is unrelated to the data in...
Ovotestis asked 12/11, 2009 at 17:51

2

Solved

I've looked at the answers to various questions, but haven't managed to map the content in the answers to the problem I'm attempting to solve. I've reduced it down to the following code (representa...
Hypotaxis asked 1/4, 2011 at 19:12

1

Solved

This is what I want: There is a combo-box column bound to the ApplicationKey property of ClassA The combo-box is populated with ApplicationTokens from a static function all. An ApplicationToken h...

1

Solved

Question: Most code samples on the DataGridComboBox seem to use a static resource as the ItemsSource. In my use case, I'd like to provide different ItemsSources with each bound object. Can this be ...
Dose asked 15/7, 2010 at 14:48

6

Solved

Situation: I've created a DataGrid in XAML and the ItemsSource is binded to an ObservableCollection of a certain class that contains properties. Then in C#, I create a DataGridTextColumn and a Dat...
Designing asked 27/10, 2009 at 21:31
1

© 2022 - 2024 — McMap. All rights reserved.