Hi,
Here is my settings:
<igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings CellClickAction="SelectCell" LabelClickAction="SelectField"/> </igDP:XamDataGrid.FieldSettings>
And here are my styles:<Style TargetType="{x:Type igDP:CellValuePresenter}"> <Style.Triggers> <DataTrigger Binding="{Binding DataItem.IsChannelEnabled}" Value="False"> <Setter Property="IsEnabled" Value="False"/> </DataTrigger> </Style.Triggers> </Style>
When I try to select some cells from the disabled cell, all the records are selected. What I want to archieve is that only the cells are selected not the records?
Is this possible?
Hello Ima,
I am just checking if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thank you for your post. I have been looking into the functionality that you are looking for and in order to be able to select the cells of the XamDataGrid, their CellValuePresenters should be enabled. You can set the IsEnabled property of the CellValuePresenter to True and use one of the following approaches, in order to restrict the editing of cells:
I have modified the sample application that you have provided me with in order to demonstrates how you can cancel the editing of the cells, using the same condition that you have applied in the trigger of the Style for the CellValuePresenter, using the second approach that I have described.
If you need any further assistance on the matter, please do not hesitate to ask.
Is there any progress?
Thank you!
I have attached a sample.
The first and second columns are enabled, but the third is not.
If I want to select some cells from the second column, the records will be selected.