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.

Readonly cell

Thread ID:

Created:

Updated:

Platform:

Replies:

37262 Nov 17,2005 07:14 PM Nov 17,2005 08:36 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 17, 2005 07:14 PM

I use the following code make my cells read-only. Now when I try to type something in these columns it takes first letter/character, once you tab out from the cell it goes away but it shouldn''t accept even a single character. if(e.ColIndex >= SPREAD_START_COLUMN && e.ColIndex <= SPREAD_END_COLUMN ) { if (!false) { if (this.grid1[e.RowIndex,SPREAD_TYPE_COLUMN].Text.ToString() == "30") e.Style.ReadOnly =false; else e.Style.ReadOnly = true; } } Thanks,

Administrator [Syncfusion]
Replied On November 17, 2005 08:36 PM

Are you using this code in a grid.Model.QueryCellInfo event handler? http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=95

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.

;