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

Setting default row height in OnQueryRowCount

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

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon