Hi Alex,
My grid settings is
Selection Type is Extended
CellClickAction is SelectRecord
I am using Ctrl + click to Select and Deselect a record. But i can't unselect my last row. How to deselect
that last row? is there anyway to set MinSelectRows = 0.
???
Regards,
Ramesh.P
Hello Ramesh,
When you have selected couple of records holding the Ctrl key and click on one of the selected ones, it does get unselected. It will however appear as selected until you click somewhere else. Yes, there is such property - MaxSelectedRecords of the FieldLayoutSettings tha tyou can use.
Alex,
My problem is i want to deselect last one too.
(My actual requirement is If the user select a row and set rows i will do an operation , If user not select a
row i will do an another operation. Think, mistakenly the user selected a row and now he want to
deselect that one. how the enduser deselect the row?)
I know there is propery MaxSelectedRecords It is used for control maximum selectable records.
My requirement opposite to that.
I have a similar issue. Did this issue get resolved by placing the style trigger or should anything else be done too. I have put in my post here, http://ko.infragistics.com/community/forums/t/83689.aspx
I have put in the XAML too, please respond.
Thanks,
Ravi
I want the same result but my grid has a Theme="Office2k7Black" how do i achieve it
Yes Alex.
Exactly what i want.
thanks
Ramesh,
I can see this. Then you can try the following style for the DataRecordCellArea:
<Style TargetType="{x:Type igDP:DataRecordCellArea}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=IsSelected}" Value="False">
<Setter Property="BackgroundActive" Value="Transparent"/>
<Setter Property="BorderActiveBrush" Value="Transparent"/>
</DataTrigger>
</Style.Triggers>
</Style>
Yes Alex,
Your sample solution working well. I can see Selected count 0 when i Ctrl + click last record.
But unfortunately i couldn't remve the background color of the last one.