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
Hello Suhas,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Hi Suhas,
AllowAddNew.TabRepeat only applies when the user is already in an AddNew row and tries to tab out of that row. It does not apply to tabbing out of the last existing row in the grid. Typically, you would use this setting if you are showing the AddNewBox which has a button to allow the user to add a new row, or if you have some other UI in your application that allows to user to add a new row first.
I don't see what focusing the grid in code could possibly have to do with this, unless maybe your code that is putting focus in the grid is adding a new row to the grid or to the underlying data source, first.
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
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.
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.