Hi ,
Advance thanks.
I have got the issue in Infragistics XAMdatagrid. I am showing 2 checkbox columns(checkbox1, checkbox2) in the xamdatagrid. When I populate the records into xamdatagrid, need to disable only the checked checkbox1 column.
When the records are populated into xamdatagrid, will like to show the checked cell(checkbox) to read only column. Could you provide guidance on how to set the XamDataGrid checkbox cell read only if it is checked?
In xamdatagrid, i would like to make IsPrimary field to read only when the respective column in checked .
My view model fragment is
private bool _IsPrimary; public bool IsPrimary { get { Model.PrimaryFlg = (_IsPrimary) ? "Y" : "N";
if (_IsPrimary) { IsPrimary1 = true; } else { IsPrimary1 = false; }
return _IsPrimary; } set { _IsPrimary = value; OnPropertyChanged("IsPrimary", true); } }
private bool _IsPrimary1; public bool IsPrimary1 { get { return _IsPrimary1; } set { _IsPrimary1 = value; OnPropertyChanged("IsPrimary1", true); } }
Kind regards,
Suresh
Hello Suresh,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I used the xaml you shared with a little modification in the IsEnabled Binding. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan,
Thanks for the reply. Let us concentrate on 2nd column. When the app is started, 1st,2nd,5th row is checked. I would like to disable only these rows. Other rows 3rd and 4th, i could do checked and unchecked.
Also why the checkbox is grayed out (new row at the top) instead i would like to show unchecked by default.
Again, thanks for your fast reply.
I can say that currently the behavior is the way you want it, the checked items cannot be unchecked. As for the default value of the AddNewRecord, I added EventSetter to the XamCheckEditors’ Styles in order to set the value to false instead of null, which is the default one. Please let me know if this helps you or you need further assistance on this matter.