Completed
Last Updated: 08 Jun 2015 07:38 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 04 May 2015 10:38
Category: GridView
Type: Bug Report
0
FIX. RadGridView - InvalidOperationException/TargetInvokationException when dragging a column from ColumnChooser and dropping it back to the grid and AllowSearchRow is set to true
To reproduce:
private void Form1_Load(object sender, EventArgs e)
{
    this.customersTableAdapter.Fill(this.nwindDataSet.Customers);
    this.radGridView1.DataSource = this.customersBindingSource;
    this.radGridView1.BestFitColumns(Telerik.WinControls.UI.BestFitColumnMode.AllCells);
    this.radGridView1.AllowSearchRow = true;
}

Workaround:
private void Form1_Load(object sender, EventArgs e)
{
    RadDragDropService svc = this.radGridView1.GridViewElement.GetService<RadDragDropService>();
    svc.PreviewDragDrop += svc_PreviewDragDrop;
}

private void svc_PreviewDragDrop(object sender, RadDropEventArgs e)
{
    GridViewSearchRowInfo.Cancel = true;
}
Attached Files:
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments