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.

Clear all text and styles from Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

3049 Feb 27,2003 07:39 AM Feb 27,2003 11:36 AM Windows Forms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 27, 2003 07:39 AM

Hello How can I clear all information from a grid. For example I need to reset the grid back to the orginal settings for color and data. I tried a number of ways, but the grid kept keeping its settings. John O

Administrator [Syncfusion]
Replied On February 27, 2003 10:36 AM

Try ClearCells(GridRangeInfo.Cells(row1, col1, row2, col2)) or for the whole table: ClearCells(GridRangeInfo.Table()) Stefan

Rajaraman
Replied On February 27, 2003 10:59 AM

Hi Stefan I am facing terrible problems when i use the same grid for Hierarchical way of showing data and back to normal dataset assigning (single row) i tried what you said but no use i tried grid1.model.clear(True) also Can u help me? regards Rajaraman Calsoft,INDIA > Try > > ClearCells(GridRangeInfo.Cells(row1, col1, row2, col2)) > or for the whole table: > ClearCells(GridRangeInfo.Table()) > > Stefan

Administrator [Syncfusion]
Replied On February 27, 2003 11:30 AM

I thought you were referring to the regular grid, not databound ... In the 1.5.2 version there is a Model.Binder.ResetHierarchyLevels() method that solves an issue when changing the DataSource after setting up hierarchies. You could do: grid.DataMember = ""; grid.DataSource = yourNewDataSource; // or null grid.Binder.ResetHierarchyLevels(); Stefan

Rajaraman
Replied On February 27, 2003 11:36 AM

Hi Stefan NO I am using databound with hierarchylevels Regards Rajaraman

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.

;