Hi,
I have a Grid with a UltraGridRowEditTemplate and a UltraGridCellProxy with name 'ID' added to it.
Further i have written ID_TextChanged event in my code but this event does not get fired at all. Not even after the text is changed and focus is moved to other cell/control.
My other query:
Is there any way i can allow RowEditTemplate to pop-up only when user clicks on RowSelector and not on Cell click?
Thanks,
Chitra
Hi Dimitar,
Thanks a lot for your reply.
It works as expected.
Hi Chitra,
Thank you for the reply.
This can be achieved by setting the RowEditTemplateUIType of the grid’s Override to RowSelectorImage. You can do this by using the following line:
ultraGrid1.DisplayLayout.Override.RowEditTemplateUIType = RowEditTemplateUIType.RowSelectorImage;
Please let me know if you have any additional questions.
Thank you for your reply.
But there are 2 scenarios:
1. The RowEditTemplate to be displayed only when clicked on RowSelector which i could get by using following line of code
ultraGrid1.DisplayLayout.Override.CellClickAction = CellClickAction.RowSelect;
2. And if i click on any editable cell on the grid it should allow me to edit that cell directly on the grid instead of roweditTemplate.
Is there any way so that both above scenarios could be achieved?
Thank you for posting in our forums.
The UltraGridCellProxy is composite control. This means that it contains other controls inside it. It is these other controls that fire the TextChanged event, so if you want to handle it, please subscribe to the ControlAdded event of the CellProxy and then subscribe to the TextChanged event of the added control. As for the RowEditTemplate showing only when you click on the RowSelector, you can set the CellClickAction of the grid to a value like RowSelect or CellSelect and this will prevent the RowEditTemplate from being shown when you click a cell. You can do that with the following line: