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.

Setting default row height in OnQueryRowCount

Thread ID:





4977 Jun 11,2003 08:56 PM Jun 12,2003 02:16 AM Windows Forms 1
Tags: GridControl
Sue Harris
Asked On June 11, 2003 08:56 PM

Hi, I've created a class which inherits from GridControl. In my OnQueryRowCount override I'm want to set the default row height. However, this is putting me in an endless loop. The line which is looping is: base.Model.Rows.DefaultSize = newValue; Is there another way for me to set the default size or to suppress the QueryRowCount? Thanks, Sue

Administrator [Syncfusion]
Replied On June 12, 2003 02:16 AM

You could put a flag in there. Somthing like: bool inOnQueryRowCount = false; void OnQueryRowCount(...) { if (inOnQueryRowCount) return; inOnQueryRowCount = true; // your code inOnQueryRowCount = false; } Stefan


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.