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

Hiding Rows and Grid Redraw

Thread ID:

Created:

Updated:

Platform:

Replies:

12118 Mar 22,2004 05:07 PM UTC Mar 22,2004 05:33 PM UTC WinForms 1
loading
Tags: GridControl
Nicola
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)
{
	this.gridDataBoundGrid1.BeginUpdate();
	for(int i = 1; i < this.gridDataBoundGrid1.Model.RowCount; i = i + 2)
	{
		this.gridDataBoundGrid1.Model.Rows.Hidden[i] = true;
	}
	this.gridDataBoundGrid1.EndUpdate();
	this.gridDataBoundGrid1.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.

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

;