Completed
Last Updated: 08 Feb 2016 09:26 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 14 Dec 2015 10:14
Category: GridView
Type: Bug Report
1
FIX. RadGridView - NullReferenceException when entering edit mode in a grid placed in a UserControl on a ToolWindow
Please refer to the attached sample project and follow the steps illustrated on the attached gif file.

Workaround: subscribe to the CellBeginEdit event and focus the grid:

public partial class UserControl1 : UserControl
{
    public UserControl1()
    {
        InitializeComponent();
        this.radGridView1.CellBeginEdit += radGridView1_CellBeginEdit;
    }

    private void radGridView1_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
    {
        this.radGridView1.Focus();
    } 
}
0 comments