Hallo Telerik Team,
is it possible to bind to an other column value of an GridView.
I have a GridView with 3 columns like this:
And i want to bind the 3rd Column (GridViewDataColumn) to the SelectedItem of the 1st Column (GridViewComboBoxColumn).
Thx Mike
is it possible to bind to an other column value of an GridView.
I have a GridView with 3 columns like this:
<
Telerik:RadGridView
x:Name
=
"xSensorDaten"
Grid.Row
=
"1"
Grid.Column
=
"0"
Grid.ColumnSpan
=
"2"
ItemsSource
=
"{Binding Path=SensorDaten, Mode=TwoWay}"
IsFilteringAllowed
=
"False"
RowHeight
=
"25"
CanUserFreezeColumns
=
"False"
RowIndicatorVisibility
=
"Collapsed"
ShowGroupPanel
=
"False"
VerticalAlignment
=
"Stretch"
HorizontalAlignment
=
"Stretch"
VerticalContentAlignment
=
"Top"
AutoGenerateColumns
=
"False"
RowDetailsVisibilityMode
=
"Visible"
CanUserInsertRows
=
"True"
AddingNewDataItem
=
"OnSensorDaten_AddingNewDataItem"
>
<
Telerik:RadGridView.Columns
>
<
Telerik:GridViewComboBoxColumn
DataMemberBinding
=
"{Binding SensorDatenBeschreibungId, Mode=TwoWay}"
SelectedValueMemberPath
=
"Id"
Width
=
"300"
ItemsSource
=
"{Binding ElementName=xSensorDatenBeschreibungFuerAuswahlDDS, Path=DataView}"
Header
=
"Name"
>
<
Telerik:GridViewComboBoxColumn.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding Name}"
/>
<
TextBlock
Text
=
" ["
/>
<
TextBlock
Text
=
"{Binding EinheitDefinition.Zeichen}"
/>
<
TextBlock
Text
=
"]"
/>
</
StackPanel
>
</
DataTemplate
>
</
Telerik:GridViewComboBoxColumn.ItemTemplate
>
</
Telerik:GridViewComboBoxColumn
>
<
Telerik:GridViewDataColumn
Width
=
"200"
DataMemberBinding
=
"{Binding Path=Wert, Mode=TwoWay}"
Header
=
"Wert"
/>
<
Telerik:GridViewDataColumn
Width
=
"100"
DataMemberBinding
=
"{Binding}"
Header
=
"Einheit"
IsReadOnly
=
"True"
/>
</
Telerik:RadGridView.Columns
>
</
Telerik:RadGridView
>
And i want to bind the 3rd Column (GridViewDataColumn) to the SelectedItem of the 1st Column (GridViewComboBoxColumn).
Thx Mike