J
jobs
I know native gridview does not support this and/insert of new rows..
what's killing me is I use to have this code that worked around this
but somehow I lost it. I recall suffering through it.
Would anybody have a sample of this in vb.net?
A simple gridview with line edit option an add button outside the
grid. When the add is selected a blank row with textboxes and dropdowns
at the top of grid allows for insert of a new row into the grid.
I have some notes, but can't seem to piece it together ...
Some clues from my notes:
Button puts gridview in edit mode.
GridViewRow newRow = GridView1.CreateRow(0, 0, 1, 2);
DataBind();
or
ds.Tables[ "Products" ].Rows.InsertAt( BlankRow, 0 );
and bind
to insert the blankrow at the top of the grid.
Kicking myself for having lost the code.
Thanks for any help, code or information!
what's killing me is I use to have this code that worked around this
but somehow I lost it. I recall suffering through it.
Would anybody have a sample of this in vb.net?
A simple gridview with line edit option an add button outside the
grid. When the add is selected a blank row with textboxes and dropdowns
at the top of grid allows for insert of a new row into the grid.
I have some notes, but can't seem to piece it together ...
Some clues from my notes:
Button puts gridview in edit mode.
GridViewRow newRow = GridView1.CreateRow(0, 0, 1, 2);
DataBind();
or
ds.Tables[ "Products" ].Rows.InsertAt( BlankRow, 0 );
and bind
to insert the blankrow at the top of the grid.
Kicking myself for having lost the code.
Thanks for any help, code or information!