How do you insert a new row at the beginning or in the middle of the grid? It always inserts at the bottom and I can't do anything otherwise. Thanks

lebb

04-11-2002, 05:57 PM

What type of grid control are you using? I believe both the FlexGrid and Hierarchical FlexGrid have an .AddItem method that lets you specify a row index as an optional parameter. I'm not sure about the standard Grid control, or the DBGrid control.