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.

Hiding Rows and Grid Redraw

Thread ID:





12118 Mar 22,2004 12:07 PM Mar 22,2004 12:33 PM Windows Forms 1
Tags: GridControl
Asked On March 22, 2004 12:07 PM

Hi, I am having a problem with the grid redrawing itself everytime I hide a row. I need to hide a group of rows together and want the grid to be redrawn only once I have finished hiding rows. I have tried using the BeginUpdate/EndUpdate calls on the grid but they result in the grid being redrawn each time a row is hidden. Does anybody have any ideas about what I could do? Thanks

Administrator [Syncfusion]
Replied On March 22, 2004 12:33 PM

Did you try code like this? It seems to work OK for me.
private void button1_Click(object sender, System.EventArgs e)
	for(int i = 1; i < this.gridDataBoundGrid1.Model.RowCount; i = i + 2)
		this.gridDataBoundGrid1.Model.Rows.Hidden[i] = true;


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.