Hi All, When i load the datagrid, i want by the default row selector is nothing, i tried below syntax, but it failed.
datagrid1.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False
Please have a guide for me.
Thanks
What do you mean by "it failed"? Is this giving you an error?
When you say "the default row selector is nothing", what do you mean? Does this mean you don't want the row selectors to show up at all? If thta's the case, then the line of code you have here is correct. If it's not workiing, then something else must be happening after that line of code to turn the row selectors back on. Perhaps you should move that code into the InitializeLayout event of the grid.
i dun wan the datagrid auto highlited and select the row, what is the syntax?
anyone can help?
FAQ:How do I turn off the ActiveRowAppearance so that the active row in the grid does not appear selected.
I'm afraid I am having trouble understanding the issue.
It sounds like you are talking about the ActiveRow in the grid and not selected rows. It's important to understand that these are two different things and they are not related.
There will always be an Active row in the grid because the grid will snchronize with the current position of the DotNet CurrencyManager by default. You can turn this synchronization off using the SyncWithCurrencyManager property on the grid. I'm not sure if that's what you want.
But even when the grid synchronizes with the currency manager, it does not automatically expand any rows.
But this method seem like only the layout only disappear but the actual the rows is selected.
Actually I am involve the method when the form load generate the GRID, it will auto select a rows and highlighted on it and drill down to another records. I want it when form load generate the GRID and only user click on selected row or cell only drill down to another record.
How can it be done?