I have a Ultragrid with RowSelectors set to true and SelectTypeRow set to Single
Issue is that when user presses 'ctrl' key then multiple rows can be
selected by clicking on row selectors though "SelectTypeRow is set to Single".
I want to disable this feature. How can I do that?
I fixed this issue.
SelectTypeRow was being set twice in code. One at compile time and one at runtime
which will set it to 'Extended'
I omitted the second time set and its working fine now
Hello,
Thank you for your feedback. I am glad that your issue is solved.
Let me know if you have any further questions.
This is a bit off-topic but it is the closest issue I could find. I am able to programmatically select rows based on something like:
if componentlist.Rows(0).Cells("CompID").Value = 13 then componentlist.Rows(0).Selected = True
But the record selector does not move to this row and other featurea on the screen are not updated. Apparently selected i.e. the row is highlighted amd in the selected rows collection is NOT the same as selected via the record selector object. Since I have single select set as an absolute how can assure that when I select a row from code, the row is really selected and not just highlighted?
I am using a delegate subroutine to return the CompID value to a sibling form which has several features based on selecting a row in the grid. It is my intent to update all features on the sibling form by forcing a row selection in the grid.
Any ideas?
Hi,
It sounds like you want the row to be the ActiveRow, not necessarily selected. You can call the Activate method on the row or set:
grid.ActiveRow = componentlist.Rows(0)