I haven't be using other column types yet but I find a few things strange/confusing about the behvior of the GridViewDataColumn. I will try to explain them adequately
Two weird things about the above. 1) It tries to bind to the UniqueName string on row. 2) I would expect this column to be readonly because no edit template is defined and no datamemberbinding is defined - but instead it shows a blank cell when it goes into edit mode.
The above has a DataMemberBinding to a readonly property, this puts the column in a readonly state, even though I have defined a CellEditTemplate and have NOT set IsReadOnly. This seems inconsistent with previous behavior too. I can see how if there is no CellEditTemplate AND the DataMemberBinding is bound to a readonly property that the column IsReadOnly, but not as shown above - i would expect the CellEditTemplate should override anything short or setting IsReadOnly="True".
I just typed these examples so if there are any typo's they are not related to the behaviors mentioned.
<
telerik:GridViewDataColumn
Header
=
"P V"
Width
=
"32"
UniqueName
=
"PVColumn"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"something"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
"Colume1"
DataMemberBinding
=
"{Binding SomeReadOnlyProperty}"
Width
=
"32"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"something"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
<
telerik:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
TextBox
Text
=
"{Binding SomeProperty}"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
I just typed these examples so if there are any typo's they are not related to the behaviors mentioned.