> > You can can do this in a mousedown event handler for your datagrid using a HitTest to get the row. You can also just use the CurrentRowIndex as weel since there will be a new currentrow at this point.
> >
> >
private void dataGrid1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
> > {
> > Point pt = new Point(e.X, e.Y);
> > MessageBox.Show(this.dataGrid1.HitTest(pt).Row.ToString());
> > }
>
> wats HitTest? can pls explain to me? sorry i'm a newbie to VB.NET, but need this urgently for my work. And I'm using VB.NET not C leh.. is there any difference?