Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1610
Ultragrid automatically adds rows?
posted

Hi,

Can the ultragrid mimic the default behave of the windows DataGridView where a new row is automatically added when you start entering data on the first/previous row? or after you press tab on the last column of the row?

I found the property "AllowAddNew.TabRepeat" that according to the description was the thing I was looking for, but it's not happening...

e.Layout.Override.AllowAddNew = AllowAddNew.TabRepeat;

I added this line of code in the InitializeLayout of my ultragrid but it's not adding the new row when I Tab, Tab, Tab until the last column...

Did I miss anything?

My data source is a simple dataTable and my version of infragistics 2009

Thanks!

  • 469350
    Offline posted

    Hi Monica,

    I'm not sure I understand what the problem is.

    TabRepeat only adds a new row when the user is editing the AddNewRow and tabs out of the last cell. It will not work on an existing row if that's what you want.

    You could probably implement that yourself using the BeforePerformAction event. But it's not entirely clear to me what behavior you want, exactly, so it's hard for me to be more specific.