Hi,
I am using XamDatagrid.
I want to make single cell editable of particular column when record is selected.
I am using checkbox to select the row/record in the xamdatagrid.
I have tried the following syntax :
DataRecord dr=(DataRecord)xamDataGrid1.ActiveRecord;
dr.Cells["ColumnName"].Field.Settings.AllowEdit = true;
But this makes all the cells of that column editable. In actual it should make only one cell editable of activerecord.
Even other try i have done is :-
xamDataGrid1.ActiveRecord.FieldLayout.Fields[5].Settings.AllowEdit = true;
This also dont work.
Any help appreciated.
thanks
sejal
Sejal,
Another option that you have is to handle the EditModeStarting event and cancel this event for all the cells that are not the one you want in the current ActiveRecord.
Alex.
Hello Sejal,
The AllowEdit property belongs to the Field so you cannot set it only per one cell but for the whole field.
You can use the Editors of the CellValuePresenter (for example IsEnabled or IsReadOnly property).
Regards,