I am very new to WPF/Xceed and have a very basic question. :)
I am using DataGrid Control in my application to display a collection of objects. I want one column of my grid to be editable depending upon the type of Object. If Object is of type A, the column should be editable and if object of type B, then it should not be.
Here is the relevant column which I am talking about.
<XceedDataGrid:DataGridControl.Columns>
<XceedDataGrid:Column FieldName="Name"
DisplayMemberBinding="{Binding Name, Mode=TwoWay, ValidatesOnDataErrors=True}"
CellEditor="{StaticResource NameEditor}"
TitleTemplate="{StaticResource EmptyTitleTemplate}">
</XceedDataGrid:Column>
.....
</XceedDataGrid:DataGridControl.Columns>
In the above code, as I am using Twoway Binding, the column is becoming editable for both objects and If I use 1 way binding, it becomes read-only for both. I dont know how to put this conditional binding on the column.
Please help!!