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

Read Only Cells

Thread ID:

Created:

Updated:

Platform:

Replies:

10335 Jan 29,2004 05:45 PM UTC Jan 29,2004 06:37 PM UTC WinForms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 29, 2004 05:45 PM UTC

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 05:50 PM UTC

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 06:37 PM UTC

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.

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

;