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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting default row height in OnQueryRowCount

Thread ID:





4977 Jun 12,2003 12:56 AM UTC Jun 12,2003 06:16 AM UTC WinForms 1
Tags: GridControl
Sue Harris
Asked On June 12, 2003 12:56 AM UTC

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 06:16 AM UTC

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.

Please sign in to access our forum

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

Live Chat Icon For mobile
Live Chat Icon