i have a grid witch i set the CellClickAction property to CellSelect but when i click on the cell border or the row border the entire row is selected.
how can i avoid that?
You could set SelectTypeRow to None if you don't want rows to be selected.
Another option would be to try set RowLayoutMode on the band. I think the reason the row gets selected is that part of the row is visible in between the cells in the standard mode, but I think if you switch to RowLayout mode, the cells cover the row.
could you please provide code sample about how to set RowLayoutMode on the band.
thanks
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].RowLayoutStyle = RowLayoutStyle.ColumnLayout; }
your code works very well but it enable the user to re size the row height .
is there is a way to disable that?
Try setting grid.DisplayLayout.Override.RowSizing to None.
there is no None in RowSizing enum.
Sorry about that. I meant "Fixed". "AutoFixed" probably works, too.
You might also need to set AllowRowLayoutCellSizing and AllowRowLayoutLabelSizing, but I think these will fall back to the RowSizing property, anyway.