Good morning!!
I have a WinGrid on my APP and the usar can Add news rows. My problem it that I want that the new row appears on the top of my grid instead of the bottom.
Is there any way to do this?
Thank you.
Best regards,
Maria
Hi Maria,
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.
Okay, if you want to do it with a button, then try this:
UltraGridRow row = this.ultraGrid1.DisplayLayout.Bands[0].AddNew(); row.ParentCollection.Move(row, 0); this.ultraGrid1.ActiveRowScrollRegion.ScrollRowIntoView(row);
Hello Mike,
I've already tried this code but it does not perform as I need.
What happened: Always appears an empty row on the top of my grid.
What I need: Appears an empty row on the top of my grid only when I click my "AddRow" button.
Thank you in advance.
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.AllowAddNew = AllowAddNew.FixedAddRowOnTop; }