Hi All,
My requirement is to put the grid in edit mode when user clicks on editor button. for example if we consider combo box editor, I want to activate editability of the grid when user clicks on the combo box only and not on the text of the cell.
In this case I have used UltraCombo, when user clicks on the drop down button then only I want to activate the editability of the cell otherwise the grid should be in uneditable mode.Same thing I want to do for UltraCheckEditor
Need suggestions on this,
Yogesh
Hi Yogesh,
I don't understand your question. What is the relationship between the UltraCombo or UltraCheckEditor here and the grid? How are they being used together?
Maybe this KB article will help you:
HOWTO:How can I make a grid or a column, row, or cell in the UltraWinGrid disabled or read-only?
Hi Mike,
Thanks for your reply.
My requirement is that when user clicks on the editor button then only the grid should go in edit mode.
one of the column in my grid is having editor ultra combo so here I want the grid should be editable only when the user clicks on "DropDownButton" of the editor and not on the "Text" area.
Similarly another column of my grid has editor as "UltraCheckEditor" here also I want , when user clicks on "CheckBox" area then only grid should go in edit mode otherwise if the user clicks on the same cell but not exactly on "CheckBox" then grid should not be editable
Thanks,
I'm still not sure I am clear on what you want. You are concerned with where the user clicks within the cell? There's no setting in the grid that will do that. You might be able to disable the cells and then detect where the user clicked and manually enter edit mode on the cell in code. But it would be pretty tricky determining which parts of the grid should and should not enter edit mode. If you want to try that, I recommend that you check out the Infragistics Knowledge Base and search for "ElementFromPoint". There are lots of articles that demonstrates how to determine which part of the control was clicked.