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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hiding Rows and Grid Redraw

Thread ID:





12118 Mar 22,2004 05:07 PM UTC Mar 22,2004 05:33 PM UTC WinForms 1
Tags: GridControl
Asked On March 22, 2004 05:07 PM UTC

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 05:33 PM UTC

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.

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

Live Chat Icon For mobile
Live Chat Icon