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
close icon

Hiding Rows and Grid Redraw

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

1 Reply

AD Administrator Syncfusion Team 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();
}

Loader.
Live Chat Icon For mobile
Up arrow icon