Completed
Last Updated: 16 Mar 2018 13:44 by Dimitar
ADMIN
Dimitar
Created on: 13 Mar 2018 08:57
Category: GridView
Type: Bug Report
0
FIX. RadGridView - exception when the SelectLastRow method is called after Begin/End Update block.
To reproduce, perform the following steps with the attached project:

Step 1: Create Sample Database
==============================
New (Sample1.db)
Import
Save
Close

Step 2:
======
Open (Sample1.db)
Import
Save
Close

Step 3:
======
New (Sample2.db)
Import (Exception)

Workaround:
 radGridView1.GridViewElement.Navigator = new MyNavigator();

class MyNavigator : BaseGridNavigator
{
    public override bool SelectLastRow()
    {
        var enumerator = typeof(BaseGridNavigator).GetField("enumerator", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(this) as GridTraverser;
        enumerator.Reset();
      
        return base.SelectLastRow();
    }
}
Attached Files:
0 comments