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
205
Change checked checkbox column read only in xamdatagrid when the records get populated from backend.
posted

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

Parents Reply Children
No Data