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.

Update Row Height in QueryCellInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

32181 Jul 24,2005 11:42 PM Jul 25,2005 02:22 AM Windows Forms 1
loading
Tags: GridControl
Adam K.
Asked On July 24, 2005 11:42 PM

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 02:22 AM

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.

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.

;