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

icon in col header & virtual grid

Thread ID:

Created:

Updated:

Platform:

Replies:

18099 Aug 24,2004 09:43 AM UTC Aug 24,2004 09:49 AM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On August 24, 2004 09:43 AM UTC

Hello, I new to Syncfusion grid. I work with Delphi 8. I have read in the knowledge base that it was possible to add icons in the column headers by doing this : Grid[0,1].CellType := ''Static''; Grid[0,1].CellAppearance := GridCellAppearance.Flat; Grid[0,1].ImageList := ImageList1; Grid[0,1].ImageIndex := 0; this work well when do not work with ''QueryColCount'', ''QueryRowCount'' event. Are the two things compatible ? Can I work with a virtual grid and add icons in my headers ? Actually I get the following error message : ''Project Project1 encountered unhandled exception class System.ArgumentOutOfRangeException''. Thanks, Verane.

Administrator [Syncfusion]
Replied On August 24, 2004 09:49 AM UTC

Instead of explicitly setting these style properties in a virtual grid, you will have to provide them dynamically in QueryCellInfo. So, in your QueryCellInfo, you should set these properties on e.Style when e.RowIndex == 0 and e.ColIndex = 1.

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

;