hi all ,
Need to restrict row selection or cell selection ..ie the row shud not be highlighted any help ..plz
Thanks in advance
Hi,
Okay, you seem to be mixing up Active and Selected. They are two completely different concepts and it's important to understand the difference.
By default, the grid will synchronize it's ActiveRow with the current Position of the DotNet CurrencyManager. The CurrencyManager will always have a current position (assuming that there is at least one row of data), so the grid will always have an ActiveRow.
You can turn off the ActiveRowAppearance and ActiveCellAppearance so that there is no special appearance applied to the active row, but there still has to be an active row because the CurrencyManager has one and the grid has no control over that.
It sounds to me like you want to turn off the ActiveRowAppearance and ActiveCellAppearance and then set SelectTypeRow to Single so that the user can select a single row. But make sure you use grid.Selected.Rows to determine the selected row in code and not ActiveRow.
Hi Mike:
Isnt there a way NOT to select (highlight) any row by default?
Override and resetting the ActiveRowAppearance and ActiveCellAppearance, seems to be a workaround.All I want is to display all the records and allow user to select and not show something selected by default.
It works! Thanks
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?
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