Click here to Skip to main content
16,018,797 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
private void load()
{
    DataTable table = access.getdatatable("select c.CHECKPOINT_ID,c.CHECKPOINT_NAME , c.SHEDULE_TIME ,c.DISTANCE , c.TYPE_NAME,c.pos_serial, c.enter_date  from check_points c where ROOT_ID='" + TextBox1.Text + "'");
    GridView1.DataSource = table;
    GridView1.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
     load();
}

using this code i load my db values to the gridview , now i want add new row to in between these two rows,because sometimes when i adding data some rows can be missed so i want to add those values again so how can i do this ,in asp.net plz help me,..
Thank u
-Chathuranga-
Posted
Updated 17-Jul-13 1:17am
v2
Comments
[no name] 17-Jul-13 7:22am    
So insert your "missed" data in the table before it's bound to the grid.
chahthuranga 17-Jul-13 7:35am    
no i add this values to grid and save then using unique ID i load these values to again another grid(like search),in here if i want add new data i want add new row in this new grid(like a update)

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900