Read Only Cells

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

2 Replies

AD Administrator Syncfusion Team 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;


AD Administrator Syncfusion Team 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; >

Loader.
Up arrow icon