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.
Syncfusion Feedback

Setting default row height in OnQueryRowCount

Thread ID:

Created:

Updated:

Platform:

Replies:

4977 Jun 12,2003 12:56 AM UTC Jun 12,2003 06:16 AM UTC Windows Forms 1
loading
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

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.

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

;