Is it possible to select/deselect a row in ultragrid by single mouse click like listbox control in winforms?
Example:
1st click on a row should select(highlight) the entire row.
2nd click on the same row should deselect the entire row.
Select is working when mouse is clicked on Row header in ultragrid and Deselect is working when CTRL + mouse click is done.
But i want the select/deselect feature when clicking a row(not row header).
Thank you.
Hello Toji,
That's great! Your welcome.
This one helped.
I attached another sample that uses a SelectionStrategyFilter which will work nicely with multiple rows selected and is more efficient for your requirement. Compared to my previous sample, deselecting one row won't affect the others.
For more details you can visit our dev center article here: (best viewed in Chrome)http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=8279
Let me know if you have any questions.
Hello,
The CellClickAction property provides an RowSelect enum value which will allow you to click rows instead of activating cells and avoid having to use RowSelectors. You can also handle the ClickCell event and reset the Selected.Rows collction accordingly.
I attached a small sample demonstrating the desired behavior. Single clicking on a row will essentially toggle the selected row apperance.
Note that to get this to perform this way you need to also reset the ActiveRow Appearance to avoid the row from highlighting.
Let me know if you have any questions regarding this matter.