We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





37996 Dec 3,2005 04:16 PM UTC Dec 4,2005 11:32 PM UTC WinForms 5
Tags: GridControl
Administrator [Syncfusion]
Asked On December 3, 2005 04:16 PM UTC

Hi everyBody, i have a table containg three nested tables, how can i refresh just the second table or a row in the second nestedTable Thank you

Administrator [Syncfusion]
Replied On December 3, 2005 11:50 PM UTC

You can try using either: this.gridGroupingControl1.GetTableControl("ChildTable").Refresh(); or this.gridGroupingControl1.GetTableControl("ChildTable").RefreshRange(someRange);

Administrator [Syncfusion]
Replied On December 4, 2005 09:30 AM UTC

Thanks, i have in the dataset the tables with relations A->B->C, and what i want is to refresh a given row in the childTable "B" which is one of many other childtables "B"

Administrator [Syncfusion]
Replied On December 4, 2005 10:44 AM UTC

>>refresh a given row in the childTable "B" How do you know the given row? Do you know a GridRecord object, or a DataRowView object, or a primary key value for the row, or something else?

Administrator [Syncfusion]
Replied On December 4, 2005 10:59 AM UTC

This is my code : Point point = grid.TableControl.PointToClient(Control.MousePosition); Element element = grid.TableControl.PointToNestedDisplayElement(point); if(element is GridRecordRow) { GridRecord rec = element.ParentRecord as GridRecord; if(rec != null) { if (rec.ParentChildTable.Name = "ChildTableName") { int row = gt.FilteredRecords.IndexOf(rec); grid.GetTableControl("ChildTableName").RefreshRange(GridRangeInfo.Rows(row)) but it''s not working thnks

Administrator [Syncfusion]
Replied On December 4, 2005 11:32 PM UTC

Usually, you do not have to worry about refreshing a row. If values in datarow are changed outside the grid, the grid should handle the appropriate IBindingList.ListChanged event to refresh the row without any action on your part. If you are trying to change some style attribute on the particular row, then you should probably be using QueryCellStyleInfo to handle this. You cannot do it trying to explicitly setting the style properties using an indexer on the grid. Here is a little sample that chnages the color of a row as you click bttons on the form. The button handlers call RefreshRange to force the rowto redraw to show the new color through QueryCellStyleInfo. http://www.syncfusion.com/Support/user/uploads/GGC_nestedTables_e1a1003d.zip


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon