Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
415
setting XamDataGrid.AllowEdit to True for few columns using Triggers.
posted

Hi,

We are binding the datasource to XamDataGrid . Please find the code snipper for the same.

<data:XamDataGrid DataSource="{Binding SpectrumList}" AutoFit="True" UseLayoutRounding="True"SortRecordsByDataType="True" x:Name="xamDataGrid" GroupByAreaLocation="None" >

<data:XamDataGrid.FieldLayoutSettings>

<data:FieldLayoutSettings AutoGenerateFields="True" AllowAddNew="False" AllowRecordFixing="No"AllowDelete="False" AllowFieldMoving="No" HighlightAlternateRecords="True"/>

</data:XamDataGrid.FieldLayoutSettings>

<data:XamDataGrid.FieldSettings>

 

 

 

 

<data:FieldSettings AllowEdit="False"/>

</data:XamDataGrid.FieldSettings>

</data:XamDataGrid

1) By default we are setting the AlloEdit to false for all the columns.We have a requirement to modify the few columns data .

We want to write a Trigger to identify the columns and make the columns editable. Please suggest some solution for the same.

Regards,

Yugandher