Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
26239 | Mar 17,2005 01:46 PM UTC | Mar 18,2005 03:53 PM UTC | WinForms | 2 |
![]() |
Tags: GridControl |
this.gridGroupingControl1.TableDescriptor.Columns["region"].Appearance.AnyRecordFieldCell.ReadOnly = true;
to make the cell readonly, you can use this handler to prevent teh edit cursor from showing.
private void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
int field = e.TableControl.TableDescriptor.ColIndexToField(cc.ColIndex);
GridTableCellStyleInfo style = e.TableControl.TableDescriptor.Columns[field].Appearance.AnyRecordFieldCell;
if(style.ReadOnly)
{
e.Inner.Cancel = true;
}
}
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.
This page will automatically be redirected to the sign-in page in 10 seconds.