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

static cell type in data bound grid

Thread ID:

Created:

Updated:

Platform:

Replies:

5978 Jul 28,2003 05:57 AM UTC Jul 28,2003 08:08 AM UTC Windows Forms 1
loading
Tags: GridControl
Kevin
Asked On July 28, 2003 05:57 AM UTC

I'm using the data bound essential grid under vb.net an want to display a cell with a static text ("Title:"). I use the following properties for the cell: celltype = static text = "Title:" This doesn't work. Can you help me?

Administrator [Syncfusion]
Replied On July 28, 2003 08:08 AM UTC

In a GridDataBoundGrid, you cannot set style properties (other than Text or CellValue) for individual cells. (In a GridControl, you can.) The reason is that the only data store available is your DataSource, and it does not have any knowledge of anything except the cell value. (It does not store CellType for example) In a GridDataBoundGrid, to set a style property like CellType = "Static", try handling PrepareViewStyleInfo, and if e.RowIndex and e.ColIndex point to this cell, then set the properties in e.Style to have the values you want.

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

;