Completed
Last Updated: 05 May 2016 10:22 by ADMIN
ADMIN
Hristo
Created on: 05 Apr 2016 13:39
Category: GridView
Type: Bug Report
0
FIX. RadGridView - pasting from clipboard on an empty grid or cutting from an empty grid results in a NullReferenceException
Workaround: use a custom BaseGridBehavior

public Form1()
{
    InitializeComponent();

    this.radGridView1.GridBehavior = new MyBaseGridBehavior();
}

public class MyBaseGridBehavior : BaseGridBehavior
{
    public override bool ProcessKey(KeyEventArgs keys)
    {
        if (keys.Control && this.GridControl.CurrentColumn == null)
        {
            return false;
        }

        return base.ProcessKey(keys);
    }
}
0 comments