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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

static cell type in data bound grid

Thread ID:





5978 Jul 28,2003 05:57 AM UTC Jul 28,2003 08:08 AM UTC WinForms 1
Tags: GridControl
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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon