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

RowsHiding cause

Thread ID:





32654 Aug 5,2005 03:55 AM UTC Aug 5,2005 09:56 AM UTC WinForms 1
Tags: GridControl
Sue Harris
Asked On August 5, 2005 03:55 AM UTC

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 09:56 AM UTC

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; }


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

or the page will be automatically redirected to 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