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.
Syncfusion Feedback

Readonly cell

Thread ID:

Created:

Updated:

Platform:

Replies:

37262 Nov 18,2005 12:14 AM UTC Nov 18,2005 01:36 AM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 18, 2005 12:14 AM UTC

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 18, 2005 01:36 AM UTC

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.

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

;