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.

Celltypes in derived Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

13365 Apr 27,2004 10:41 AM Apr 27,2004 02:11 PM Windows Forms 1
loading
Tags: GridControl
Pete Davis
Asked On April 27, 2004 10:41 AM

I am creating a grid derived from the GridControl. My client wants me to create a grid control that by default, has the look and feel of their other controls as well as some functionality not currently available the grid controls. First of all, there''s a specific coloring scheme that''s required as well as a couple of different types of column headers. These I''ve implemented easily through the QueryCellInfo event. Another need is to not have row headers, by default. What is the best way of handling this? Would it be to simply iterate through all the cells in column 0 and set the cell type? I guess my question is, is there an event similar to QueryCellInfo that would be better for handling this? Pete

Administrator [Syncfusion]
Replied On April 27, 2004 02:11 PM

Hi Pete, you could instead hide the first column by setting the grid.ColWidths[0] = 0; Then the row headers would not be visible at all. But, if you do want that special column then you could instead handle QueryCellInfo, check for e.ColIndex = 0 and then set e.Style.CellType and other properties you want to change. Yet another alternative solution would be to change BaseStyles["Row Header"].StyleInfo. 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.

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.

;