I have a client side gridview data and I want to insert gridview data to sql database . at first I import data from excel to gridview and now I want to insert it into sql datab
Try like this ,
If all the controls are label
foreach (GridViewRow GVRow in GridView1.Rows) { Label lbl = (Label)GVRow.FindControl("labelID"); string data=lbl.Text; }