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.

RowsHiding cause

Thread ID:

Created:

Updated:

Platform:

Replies:

32654 Aug 4,2005 11:55 PM Aug 5,2005 05:56 AM Windows Forms 1
loading
Tags: GridControl
Sue Harris
Asked On August 4, 2005 11:55 PM

Is there any way of determining whether a RowsHiding event is caused by a method call or from resizing a row height to 0? I want to prevent rows from being resized to 0, but still allow function calls to hide rows. Thanks, Sue

Administrator [Syncfusion]
Replied On August 5, 2005 05:56 AM

You can handle the ResizingRows event and set a flag there to test later. private bool sizingToZero = false; private void gridControl1_ResizingRows(object sender, GridResizingRowsEventArgs e) { sizingToZero = e.Height == 0; } private void gridControl1_RowsHiding(object sender, GridRowColHidingEventArgs e) { Console.WriteLine(sizingToZero); sizingToZero = false; }

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.

;