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

Thread ID:

Created:

Updated:

Platform:

Replies:

1720 Nov 20,2002 03:04 PM UTC Jan 15,2003 03:55 PM UTC WinForms 3
loading
Tags: GridControl
Pascal Couture
Asked On November 20, 2002 03:04 PM UTC

If I set a cell to readonly. How can I put a value programmaticaly in the cell? I tried putting the cell to readonly = false and it doesn't work. Example With grdControl1.item(1,1) .readonly = true .readonly = false .text = "hello" end with I have version 1.5

Administrator [Syncfusion]
Replied On November 20, 2002 03:29 PM UTC

> If I set a cell to readonly. How can I put a value programmaticaly in the cell? I tried putting the cell to readonly = false and it doesn't work. > > Example > > With grdControl1.item(1,1) > .readonly = true > .readonly = false > .text = "hello" > end with > > I have version 1.5 You can set grid.Model.IgnoreReadOnly = true, then do your changes and then set grid.Model.IgnoreReadOnly = false Stefan

Raphael Eschmann
Replied On January 15, 2003 10:59 AM UTC

Hi, I have some cells with the properties set to readonly = True and enabled = false to not be able to to select and modify their content (through the grid and programmatically). Thats work fine but, when I copy a range of cells and paste, the readonly's cell is modified !!! There is the same wrong behavior with a drag/drop of range of cells. Any idea ?

Administrator [Syncfusion]
Replied On January 15, 2003 03:55 PM UTC

Currently, to avoid readonly cells being pasted over, you can handle the PasteCellText event. In your handler, you can use e.Style.ReadOnly to test if the cell is readonly. If is, you can set e.Cancel to stop that particular paste, or set e.Abort to stop all all pastes from this point.

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

;