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

Update Row Height in QueryCellInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

32181 Jul 25,2005 03:42 AM UTC Jul 25,2005 06:22 AM UTC WinForms 1
loading
Tags: GridControl
Adam K.
Asked On July 25, 2005 03:42 AM UTC

I am using gridcontrol and using the virtual grid. i determine that the current row (e.rowIndex) is a special row. i then want to update the height of this row using: _g.RowHeights[e.RowIndex] = 10; when i do this within the QueryCellInfo callback i get some weird behavior. It seems that the next row gets highlighted (the row i set + 1). When i hover my mouse over the row that i made the change on, it then updates the row height to the correct height. any ideas why this is happening? thks, ak

Administrator [Syncfusion]
Replied On July 25, 2005 06:22 AM UTC

You normally do not set row heights in QueryCellInfo. The reason is that this event is hit many, many, many times as your user works with the grid. For example, the event is raised continuously as your user moves teh mouse over the grid. You should look for another place to change teh row height. For example, if teh actrion that triggeris the new row height i steh change of some value, then you might try using CUrrentCellValidating or CurrentCellAcceptedChanges as these events will be raised only when your user leaves teh changes cell.

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

;