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.

Read Only Cells

Thread ID:

Created:

Updated:

Platform:

Replies:

10335 Jan 29,2004 12:45 PM Jan 29,2004 01:37 PM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 29, 2004 12:45 PM

Hi, I''m sure this is simple, but I''m new to this software. How can I make one text column in a grid readonly? Thanks, Chuck

Administrator [Syncfusion]
Replied On January 29, 2004 12:50 PM

In a GridControl. you set grid.ColStyles[colIndex].ReadOnly = true; In a GridDataBoundGrid, if you have not explicitly added GridBoundColumns, you set grid.Binder.InternalColumns["somecolumn"].StyleInfo.ReadOnly = true; If you have added GridBoundColumns, you set grid.GridBoundColumns["somecolumn"].StyleInfo.ReadOnly = true;

Administrator [Syncfusion]
Replied On January 29, 2004 01:37 PM

Thanks! That worked great >In a GridControl. you set > >grid.ColStyles[colIndex].ReadOnly = true; > > >In a GridDataBoundGrid, if you have not explicitly added GridBoundColumns, you set > >grid.Binder.InternalColumns["somecolumn"].StyleInfo.ReadOnly = true; > > >If you have added GridBoundColumns, you set > >grid.GridBoundColumns["somecolumn"].StyleInfo.ReadOnly = true; >

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.

;