foreach (GridViewRow row in GridView1.Rows)
{
if ((row.FindControl("chkSelect") as CheckBox).Checked)
{
string dd1 = row.Cells[1].Text;
//DropDownList ddl = (DropDownList)row.FindControl("DropDownList1");
int catid = int.Parse(row.Cells[2].Text);
DateTime date = DateTime.Parse(row.Cells[3].Text);
int dcno =int.Parse( row.Cells[4].Text);
string company = row.Cells[5].Text;
string name = row.Cells[6].Text;
string size = row.Cells[7].Text;
string batch = row.Cells[8].Text;
DateTime exp = DateTime.Parse(row.Cells[9].Text);
dt.Rows.Add(dd1, catid, date, company, name, size, batch, exp);
}
im getting exception for int and datetime ...
Go to the complete details ...