This is a migrated thread and some comments may be shown as answers.

InvalidateRow() refresh only few cells

1 Answer 218 Views
GridView
This is a migrated thread and some comments may be shown as answers.
flisak
Top achievements
Rank 1
flisak asked on 26 Aug 2012, 12:50 AM
Hi,

In event CellValueChanged I set edited row fields on DataBoundItem:

// code
RowObject currRow = (RowObject)e.Row.DataBoundItem;
currRow.Field1 = field1; // current edited column
currRow.Field2 = field2; // other column
e.Row.InvalidateRow();

After InvalidateRow only Field2 data is visible. Field1 is empty.

How a can show new value in edited column?

Best Regards
 KF

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 29 Aug 2012, 08:03 AM
Hi,

Thank you for writing.

A possible reason for this behavior is if your data bound object does not implement the INotifyPropertyChanged interface, or if you are not firing the PropertyChanged event in the setter of Field1. Here is a very detailed article describing how to work with custom objects and how to allow the grid to update itself automatically: http://www.telerik.com/help/winforms/gridview-populating-with-data-reflecting-custom-object-changes-in-rgv.html.

If this is not the case, please provide us with sample code which we can use to reproduce the issue and we will look into it for you. Alternatively, open a new support ticket and attach your project there.
 
Kind regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
flisak
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or