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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ColStyles in DataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

53861 Dec 21,2006 01:17 PM UTC Dec 22,2006 10:52 AM UTC WinForms 2
loading
Tags: GridControl
Ubaid
Asked On December 21, 2006 01:17 PM UTC


Hi ... I want to know, how can i set column style in Data Bound Grid.

Administrator [Syncfusion]
Replied On December 22, 2006 04:49 AM UTC

Hi Ubaid,

For the GriddataBoundGrid, there are two different ways to do this. If you want the column nCol to be readonly, you can use code such as:

//C#
this.gridControl1.ColStyles[nCol].ReadOnly = true;
this.griddataBoundGrid1.Binder.InternalColumns[nCol-1].StyleInfo.ReadOnly = true;

//VB.NET
Me.GridControl1.ColStyles(nCol).ReadOnly = True
Me.GriddataBoundGrid1.Binder.InternalColumns(nCol-1).StyleInfo.ReadOnly = True

Let me know if you have problems with either of these items.

Best Regards,
Haneef

Ubaid
Replied On December 22, 2006 10:52 AM UTC

Thanks Haneef ... i have tried the foolowind code and its working fine

gridDataBoundGrid1.Model.ColStyles[Counter].Font.Facename="Arial"

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

;