Hi
I have WinForm grid (version 2014.2) that has multiple selection enabled however I want to restrict the row selection to no more than 2 rows.
Is this behaviour possible?
Any help greatly appreciated.
Regards
James O'Doherty
Solution Database and Architect
Hi James,
That's an easy one:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.MaxSelectedRows = 2; }
Awesome!!
Many Thanks
James