Hi,
I have a problem where I need to focus a particular cell in the UltraWin grid after tab out from windows control. But when I enter the cell and tab till the last cell, I am facing a issue where new row is not getting created. and the tab stops working.
I have even overridden the property AllowAddnew to AllowAddNew.TabRepeat;
Thanks in advance for the reply.
Plz suggest me some ideas
Regards
Suhas
Hi Suhas,
I'm a little confused.
suhasba111 said:I need to focus a particular cell in the UltraWin grid after tab out from windows control.
How the grid got focus initially should not have any effect on the TabRepeat functionality. Are you saying that it is having some effect in your case?
What exactly is happening? I assume you are tabbing to the last cell in the last existing data row and then... what? You are unable to tab into the TemplateAddRow? Or do you mean that you cannot tab out of the existing TemplateAddRow to create a new one. Do you have a TemplateAddRow at all? What's your AllowAddNew property set to?
Also, what version of the grid are you using?
Perhaps you could post a small sample project demonstrating the behavior you are getting so we could see what's going on.
Hi Mike,
I dont use a templatesaddrow at all.i just have that allowaddnew set to tab repeat.
The problem is when I go to the last cell of the row and tab out ,it does not create a new row. I am little worried here because wen i tried to focus the grid on load Of the grid ,tab out works properly and also create the new row properly. Do I need to handle any events like on enter of the grid since its the event called wen I try to focus the grid from a windows component after tabbing out from the windows component
regards
Hello Suhas,
I feel that you think that setting this property will allow you to add new row in the control when you are in the last cell of the last row. Please note that setting it to TabRepeat means that pressing tab in the last cell of the AddNew row creates automatically a new row. So you could set
ultraGrid1.DisplayLayout.AddNewBox.Hidden = false;
for example to use the functionality you are after.
Please take a look at my sample and feel free to let me know if I misunderstood you.