Skip to main content

How to select row with mouse click.

Comments

1 comment

  • Dapfor Team

    Hello,

    The code demonstrates how to select a row:

     

    grid.MouseDown += delegate(object sender, MouseEventArgs e) 
    {
    if(e.Button == MouseButtons.Right)
    {
    Row row = grid.HitTests.RowTest(e.Location);
    if(row != null)
    {
    row.Selected = true;
    }
    }
    };

     

    Regards,
    Dapfor

    0

Please sign in to leave a comment.

Powered by Zendesk