Is it possible when the Data Grid DataGridComboBoxColumn is displayed when the data grid is loading? By default, you need to click on a cell to open the combo box. I would like the user to see that the combo box is available without having to click on the cell. I would prefer the combo box to be immediately available, and the first click in the cell makes the combo box really omitted. Currently, you need to click on a cell and then click on the combo box to display the values.

VS

XAML:
<dg:DataGridComboBoxColumn x:Name="ctrlStatus" Header="Status" Width="Auto" SelectedValueBinding="{Binding Port}" SelectedValuePath="Status"> <dg:DataGridComboBoxColumn.CellStyle> <Style TargetType="dg:DataGridCell"> <EventSetter Event="Selector.SelectionChanged" Handler="SelectionChanged"/> </Style> </dg:DataGridComboBoxColumn.CellStyle> </dg:DataGridComboBoxColumn>
Code for:
List<string> _statusList; public List<string> StatusList { get { return _statusList; } set { _statusList = value; ctrlStatus.ItemsSource = _statusList; } }
Thanks GAR8
COMPLETION OF THE DECISION: XAML
<telerik:GridViewComboBoxColumn Header="Status"> <telerik:GridViewComboBoxColumn.CellTemplate> <DataTemplate> <telerik:RadComboBox ItemsSource="{Binding StatusList,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl}}" SelectedValue="{Binding Port}" SelectedValuePath="Status" SelectionChanged="SelectionChanged"/> </DataTemplate> </telerik:GridViewComboBoxColumn.CellTemplate> </telerik:GridViewComboBoxColumn>
Code for:
List<string> _statusList; public List<string> StatusList { get { return _statusList; } set { _statusList = value; } }
source share