Completed
Last Updated: 17 Aug 2015 08:54 by ADMIN
ADMIN
George
Created on: 21 Feb 2014 12:06
Category: GridView
Type: Bug Report
0
FIX. RadGridView - binding to DataTable and setting expression to a column does not update the value in the grid when filtered
To reproduce:

Add a RadGridView. Create a DataTable with 3 columns with data type - Decimal. To the last column set the following expression - "column1 + column2". Add some rows with some values. Turn on excel like filtering - http://www.telerik.com/help/winforms/gridview-filtering-excel-like-filtering.html. Subscribe to the CellValueChanged event and add the following code:

if (this.radGridView1.CurrentRow.DataBoundItem != null)
            {
                ((DataRowView)this.radGridView1.CurrentRow.DataBoundItem).Row.EndEdit(); // force row subtotal update
            }


Start the application and filter the last column by some of the available values. Change a value in one of the first two cells. You will notice that the last cell's value is not updated although it is updated in the data table.  This behavior does not occur when the grid is not filtered.
0 comments