This project is read-only.

How do you disable selection

Sep 11, 2012 at 5:11 PM

I was looking at SelectionMode property and it does not have Disable.

What I am trying to do it disable any visual selection and process double click events to know which row was selected. Or is there a way to setup Entire grid in Readonly mode to user can't update any cells manually? while double clicking on it to get which row was double clicked on?

I tied to set Grid.Enable to false making it "read only" but that prevents any mouse click events.

Would it be possible to add new Disable enum to SelectionMode?

Any ideas?

Sep 11, 2012 at 6:15 PM

I made changes to Add Disable enum and it seems like it is working. Let me know if you would accept changes and how I would submith them back to you. Unless you have better solution that already exists. Let me know ...

Sep 12, 2012 at 1:39 PM

You could make cells unselectable by adding the Unselectable controller:

cell.AddController(SourceGrid.Cells.Controllers.Unselectable.Default);

Sep 12, 2012 at 6:30 PM

That worked. Thank you