PDA

View Full Version : Lock Cel in dataGridView?


PEN
08-14-2009, 03:18 PM
Is there a way to lock a cel so that it can't be edited?

denisT
08-14-2009, 04:51 PM
Is there a way to lock a cel so that it can't be edited?


you can set cell's ReadOnly flag to ON on CellMouseEnter event for example...

there is also cell's Frozen flag... But I have no idea how it works and looks like in the view...

PEN
08-14-2009, 04:52 PM
Thanks, I'll take a poke at those and see where I get.

Track
08-16-2009, 11:38 PM
Thanks, I'll take a poke at those and see where I get.

For example:

(gridView_file_type.Item 1 0).OwningColumn.ReadOnly=true

PEN
08-17-2009, 01:22 PM
Thanks, I think that I found the same thing the end of Friday, just need to hook it up and see where it gets me.

CGTalk Moderation
08-17-2009, 01:22 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.