<
telerik:GridViewComboBoxColumn
DataMemberBinding
=
"{Binding AppointmentTimes}"
UniqueName
=
"AppointmentTimes"
Header
=
"Scheduled Appointments"
ItemsSourceBinding
=
"{Binding AvailableTimes}"
EditTriggers
=
"CellClick"
>
<
telerik:GridViewComboBoxColumn.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
CheckBox
IsChecked
=
"{Binding IsChecked, Mode=TwoWay}"
Content
=
"{Binding TimeDisplay}"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerik:GridViewComboBoxColumn.ItemTemplate
>
<
telerik:GridViewComboBoxColumn.EditorStyle
>
<
Style
TargetType
=
"telerik:RadComboBox"
BasedOn
=
"{StaticResource RadComboBoxStyle1}"
>
<
Setter
Property
=
"OpenDropDownOnFocus"
Value
=
"True"
/>
</
Style
>
</
telerik:GridViewComboBoxColumn.EditorStyle
>
</
telerik:GridViewComboBoxColumn
>
this
.htmlDataProvider.RichTextBox.DefaultStyleSettings.SetPropertyValue(Span.UnderlineColorProperty, foregroundColour);
this
.htmlDataProvider.RichTextBox.DefaultStyleSettings.SetPropertyValue(Span.ForeColorProperty, foregroundColour);
this
.htmlDataProvider.RichTextBox.Background =
new
SolidColorBrush(backgroundColour);
this
.htmlDataProvider.RichTextBox.FontSize =
this
.noteStyles.DefaultFontSize;
this
.htmlDataProvider.RichTextBox.FontFamily =
new
FontFamily(font.Source);
<
telerik:GridViewDataColumn
CellStyle
=
"{StaticResource IndexColumnStyle}"
DataMemberBinding
=
"{Binding Index}"
Header
=
"Index"
IsReadOnly
=
"True"
>
<
i:Interaction.Triggers
>
<
i:EventTrigger
EventName
=
"CellDoubleClick"
>
<
GalaSoft_MvvmLight_Command:EventToCommand
Command
=
"{Binding EditCommand}"
CommandParameterValue
=
"Edit"
PassEventArgsToCommand
=
"True"
/>
</
i:EventTrigger
>
</
i:Interaction.Triggers
>
</
telerik:GridViewDataColumn
>
<telerik:GridViewDataColumn
UniqueName="CarrierCommission"
DataFormatString="c"
IsVisible="{Binding Path=SearchCriteria, Converter={StaticResource CarrierColumnConverter}}"
Header="{StaticResource CarrierCommission}"
DataMemberBinding="{Binding Path=CarrierRepCommission}"
Width="{StaticResource CommissionColumnWidth}">
</telerik:GridViewDataColumn>
I would like to programmatically refresh the IsVisible property by calling UpdateTarget on the IsVisible binding expression. However, it seems that no matter when I call
Dim exp As BindingExpression = column.GetBindingExpression(Telerik.Windows.Controls.GridViewDataColumn.IsVisibleProperty)
I always get null for the value of exp. When is it safe to call GetBindingExpression or is there another way to refresh the binding.
Thanks,
string
c =
"ColumnUniqueName"
, v =
"ValueToSet"
;
DataRowView r = (gridview.Items[i]
as
DataRowView);
r[c] = v;
//her we get the error
Source: System.Data
Trace: at System.Data.DataRow.set_Item(DataColumn column, Object value)
at System.Data.DataRowView.SetColumnValue(DataColumn column, Object value)
at System.Data.DataRowView.set_Item(String property, Object value)
rtb.Commands.SaveCommand.Enabled = false;
void RadRichTextBoxEx_CommandExecuting(object sender, CommandExecutingEventArgs e) { if (e.Command is SaveCommand) e.Cancel = true; }