hi all ,
Need to restrict row selection or cell selection ..ie the row shud not be highlighted any help ..plz
Thanks in advance
You can turn off selection using the SelectTypeRow, SelectTypeCell, and SelectTypeCol properties on the Override.
The ActiveRow and ActiveCell in the grid will appear highlighted by default, so you can turn this off by going to grid.Displaylayout.Override and resetting the ActiveRowAppearance and ActiveCellAppearance.
Hi,
I set all the properties: SelectTypeRow, SelectTypeCell, and SelectTypeCol to None in the Override but I'm still able to select row in my grid at runtime.
Any idea?
Thanks!
If SelectTypeRow is set to none, then you cannot select a row in the grid.
So one of two things must be happening:
1) SelectTypeRow is not set correctly. Maybe you are setting it and it's getting re-set somewhere else? Perhaps you are loading a layout which is over writing the setting you are applying in code.
2) The row is not selected and it's just highlighted for some other reason. Maybe it's the ActiveRowAppearance highlighting it.
I had done a test project with only an ultraGrid binded to a ultraDataSource. I set all the properties and it style not works (UseAppStyling is set to false). I attach my test project. Can you please check what is wrong and if it's possible send me back the test projet with the row click disabled.
Thank you for your time!
Gabriel
Hi Gabriel,
There is no row selection taking place in this sample. When I click on a row, the row becomes active and shows a focus rectangle. But active is not the same as selected.
If you want to turn off the focus rectangle, then here's a KB article that will help:
HOWTO:How can I turn off the Focus Rectangle on an Infragistics Win Control?
It works! Thanks