Hi,
A property that was changed in code does not display in the cell it is bound to until the cell is clicked on twice. The first click outlines the cell and the second click puts the cell into edit mode. When in edit mode the new value is displayed. Also, if a row is added the cell value is also displayed. What do I need to do to get the cell to display when the property is set.
private string columnAlias;
public string ColumnAlias
{
get { return this.columnAlias; }
set
{
if (columnAlias == value)
return;
this.columnAlias = value;
Filter.EditWhereFilter();
OnPropertyChanged("ColumnAlias");
}
}
<telerik:GridViewDataColumn
Width="15*" Name="ColumnAlias" Header="Alias" DataMemberBinding="{Binding ColumnAlias, Mode=TwoWay}">
</telerik:GridViewDataColumn>
<telerik:RadGridView
Name="radGridViewSelectedColumns" Grid.Row="1"
ItemsSource="{Binding CriteriaColumns,
Source={StaticResource criteriaColumns}}"
telerik:RadDragAndDropManager.AllowDrop="True"
SelectionMode="Extended"
SelectionChanged="radGridViewSelectedColumns_SelectionChanged"
ShowGroupPanel="False"
IsFilteringAllowed="False"
ShowColumnHeaders="true"
BorderThickness="0"
EnableColumnVirtualization="False"
EnableRowVirtualization="False"
AutoGenerateColumns="False"
CanUserFreezeColumns="False"
CanUserResizeColumns="True"
CanUserDeleteRows="True"
Deleted="radGridViewSelectedColumns_Deleted"
RowIndicatorVisibility="Visible">
A property that was changed in code does not display in the cell it is bound to until the cell is clicked on twice. The first click outlines the cell and the second click puts the cell into edit mode. When in edit mode the new value is displayed. Also, if a row is added the cell value is also displayed. What do I need to do to get the cell to display when the property is set.
private string columnAlias;
public string ColumnAlias
{
get { return this.columnAlias; }
set
{
if (columnAlias == value)
return;
this.columnAlias = value;
Filter.EditWhereFilter();
OnPropertyChanged("ColumnAlias");
}
}
<telerik:GridViewDataColumn
Width="15*" Name="ColumnAlias" Header="Alias" DataMemberBinding="{Binding ColumnAlias, Mode=TwoWay}">
</telerik:GridViewDataColumn>
<telerik:RadGridView
Name="radGridViewSelectedColumns" Grid.Row="1"
ItemsSource="{Binding CriteriaColumns,
Source={StaticResource criteriaColumns}}"
telerik:RadDragAndDropManager.AllowDrop="True"
SelectionMode="Extended"
SelectionChanged="radGridViewSelectedColumns_SelectionChanged"
ShowGroupPanel="False"
IsFilteringAllowed="False"
ShowColumnHeaders="true"
BorderThickness="0"
EnableColumnVirtualization="False"
EnableRowVirtualization="False"
AutoGenerateColumns="False"
CanUserFreezeColumns="False"
CanUserResizeColumns="True"
CanUserDeleteRows="True"
Deleted="radGridViewSelectedColumns_Deleted"
RowIndicatorVisibility="Visible">