Completed
Last Updated: 24 Nov 2016 12:09 by ADMIN
ADMIN
Dimitar
Created on: 22 Nov 2016 08:45
Category: GridView
Type: Bug Report
1
FIX. RadGridView - the CellClick event is fired when the right mouse button is used.
To reproduce:
- Subscribe to the CellClick event 
- Click several times in the grid with the right mouse button. 
- At some point, the CellClick event will be executed. 

Workaround:
- Use the Click event:

private void RadGridView1_Click(object sender, EventArgs e)
{
    var args = e as MouseEventArgs;
    if (args.Button == MouseButtons.Left)
    {
        var clickedCell = radGridView1.ElementTree.GetElementAtPoint(args.Location) as GridDataCellElement;
        if (clickedCell != null)
        {
            //add your code here
        }
    }
}

(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments