Completed
Last Updated: 19 Mar 2020 14:43 by ADMIN
Release R2 2020 (LIB 2020.1.323)
Vicent
Created on: 28 Feb 2020 16:23
Category: GridView
Type: Bug Report
0
RadGridView: When binding to BindingList and clear the rows collection, SelectedRows.Count =1 although Rows.Count = 0

Steps to reproduce:

1. Bind RadGridView to BindingList 

2. Clear the rows collection

3. You can see that SelectedRows.Count =1 although Rows.Count = 0

To workaround:

private void radButton1_Click(object sender, EventArgs e)
        {  
            while (this.pedidos.Count > 0)
            {
                this.pedidos.RemoveAt(0);
            }

            int rows = this.radGridView1.Rows.Count;
            int srows = this.radGridView1.SelectedRows.Count;

        }

0 comments