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.
Unfortunately, activation email could not send to your email. Please try again.

Refreshing Problem

Thread ID:

Created:

Updated:

Platform:

Replies:

19102 Sep 17,2004 07:33 AM Sep 17,2004 09:01 AM Windows Forms 3
loading
Tags: GridControl
arvind
Asked On September 17, 2004 07:33 AM

Hai, I have a GDBG and and a DataTable is set as the dataSource for that grid . The dataTable is loaded with data and I want to make the values of all the cells to blank, So I have written this.grid.BeginUpdate(); foreach(DataRow row in dataTable.Rows) { row["ColumnName"] = DbNull.Value; . . . } this.grid.EndUpdate(); After there is a refreshing problem happening.

Administrator [Syncfusion]
Replied On September 17, 2004 07:58 AM

You should check if there are any exceptions being thrown from this code (as might be the case if this column in your DataTable does not allow nulls). If there are no exceptions being thrown, then after this.grid.EndUpdate, you would have to call this.grid.Refresh (or RefreshRange) to tell the grid to repaint itself to show the changes you have made.

arvind
Replied On September 17, 2004 08:17 AM

Hai , I don''t have any exception in any of the columns,One column''c Cell type is DateTime. If I take out the BeginUpdate() and EndUpdate() ,then I can see the rows becoming empty. >You should check if there are any exceptions being thrown from this code (as might be the case if this column in your DataTable does not allow nulls). > >If there are no exceptions being thrown, then after this.grid.EndUpdate, you would have to call this.grid.Refresh (or RefreshRange) to tell the grid to repaint itself to show the changes you have made. > >

Administrator [Syncfusion]
Replied On September 17, 2004 09:01 AM

Leave your code the way you have it, but after grid.EndUpdate(), add grid.Refresh();

CONFIRMATION

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.

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.

;