Hello
I would like to get a reference of the row where the user pressed the right mouse button (that is, within the MouseDown event handler).
How can I do that?
Thanks a lot.
This KB article should help:
HOWTO:UltraWinGrid Mouse Position and Row Identification
Hi man,
use this:
if (e.Button == MouseButtons.Right) {
if (el != null) {
if (this.GridServices.ActiveRow != null) {
this.GridServices.ActiveRow = null;
UltraGridRow row = el.GetContext(typeof(UltraGridRow), true) as UltraGridRow;
this.GridServices.ActiveRow = row;
}
Hope that helped
Nassos