On Wed, Sep 29, 2010 at 11:12 AM, crocboy25 <[email protected]> wrote: > Thanks for your reply... > > I am using .NET 3.5 > > In the data source where I populate the gridview, i hard code in a row > at the top of the results and then UNION that into the rest of the > results so I get a blank line at the top of the gridview.... then I > manipulate the EDIT/Delete buttons as seen below.... I am using an > example I found before and tweaked it some but it doesnt work... -------------
Why not just add a new row to the existing data and put in content so it will be # 0 after a sort? Then rebind the data to the grid? I don't use datatables I use dataObjects. // probably already have his ahead of time List<GridData> gd = SomeWebServiceMethod(withParams); GridData ogd = new GridData; ogd.ID=-1; gd.Add(ogd); // sort for putting new row on top gd = gd.OrderBy(x => x.ID).ToList(); // present arms! gvMyGrid.DataSource= gd; gvMygrid.DataBind(); -- Stephen Russell Sr. Production Systems Programmer CIMSgts 901.246-0159 cell
