Completed
Last Updated: 04 Jun 2015 13:43 by ADMIN
ADMIN
Stefan
Created on: 21 Apr 2014 06:00
Category: GridView
Type: Bug Report
1
FIX. RadGridView - the DataBindingComplete event is fired prior the grid binding is finished, hence the rows in the grid are being recreated after the event
Workaround - listen for Reset of the rows collection and introduce your modification there:

        radGridView1.Rows.CollectionChanged += Rows_CollectionChanged;

        void Rows_CollectionChanged(object sender, Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e)
        {
            if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Reset)
            {
                foreach (GridViewRowInfo row in radGridView1.Rows)
                {
                    row.Cells[0].Value = false;
                }
            }
        }
0 comments