Dear Sir/Madam,
I have the exact problem exposed by moh86fci here: http://forums.infragistics.com/forums/p/41810/231834.aspx#231834 .In my case the user must have the possibility to select rows (using RowSelector) so I can not set grid.DisplayLayout.Override.RowSizing to None .
Workaround Mike proposed, that is to set RowLayoutStyle to ColumnLayout seems to solve, but introduced a new annoyance : moving the mouse over the grid, between rows the cursor change in a up-down arrow really bad to see and also cursor change not only when over the border but with a wide margin around the border, leaving clickable space on a cell (available to activate the cell) very small.Is there a way to limit row sizing only by RowSelector ?If not, is there a way to limit up-down cursor (and related sizing functionality) to trigger only on exact border with no margin?Is there a way to change up-down cursor to the one shown on RowSelector?At least is there a way to hide up-down cursor?
Thanks in advanceCiaoGianni
Hi Gianni,
It's not working in your sample because your code in the InitializeLayout event is never getting called. You are hooking the event after you have already set the grid's DataSource, so your event handler never gets called. You have to hook the InitializeLayout event before you set the grid's DataSource.
Hi Mike!I'm taking some tries... no luck.It seems RowSizingArea setting get ignored. Is it possible? Have you already use it successfully?It seems to me that the grid starts with a certain default, then you can not change this setting. In my case row still can be sized by rowselectors and rowborders both.In a little project I made to test this it seems default is by rowselectors only and if I change it putting rowbordersonly... NO EFFECT! I attached the test, please could you take a try? What's wrong? Look at Form1.cs code.Thank you very muchGianni
GiannisKhan said:Is there a way to limit row sizing only by RowSelector ?
Yes.
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.RowSizingArea = RowSizingArea.RowSelectorsOnly; }