What is the best way to disable all rows from being selected in the XAMDatagrid. I got this from the help but it doesn't appear to do anything.
<igDP:XamDataGrid.FieldLayoutSettings
>
/>
Thanks!
-Tammy
Hello Tammy,
It has been a while since you have made this post, in case you still need any support about it please feel free to contact us. Regarding this issue, I reviewed your requirements and I can suggest you try catching the event SelectedItemChanged of the XamDataGrid and in the handler to set:
private void xdg_SelectedItemsChanged(object sender, Infragistics.Windows.DataPresenter.Events.SelectedItemsChangedEventArgs e)
{
xdg.SelectedItems.Records.Clear();
xdg.SelectedItems.Cells.Clear();
xdg.ActiveRecord = null;
}
And also to change the color of the DataRecordCellArea brushes that is displayed when the selection is made. To do this you can try:
<Style TargetType="{x:Type igDP:DataRecordCellArea}">
<Setter Property="BackgroundHover" Value="Transparent"/>
<Setter Property="BackgroundActive" Value="Transparent"/>
<Setter Property="BackgroundSelected" Value="Transparent"/>
<Setter Property="BorderActiveBrush" Value="Transparent"/>
<Setter Property="BorderHoverBrush" Value="Transparent"/>
<Setter Property="BorderSelectedBrush" Value="Transparent"/>
</Style>
If you still need any assistance on the matter, please do not hesitate to ask.