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

Readonly cell

Thread ID:





37262 Nov 18,2005 12:14 AM UTC Nov 18,2005 01:36 AM UTC WinForms 1
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


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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