int ColumnIndex = e.ColumnIndex; obj_companies.Company_Id = dtgridcompanyList.Rows[e.RowIndex].Cells[2].Value.ToString(); obj_companies.CompanyName = dtgridcompanyList.Rows[e.RowIndex].Cells[3].Value.ToString(); obj_companies.CompanyRegno = dtgridcompanyList.Rows[e.RowIndex].Cells[4].Value.ToString(); obj_companies.CompanyUrl = dtgridcompanyList.Rows[e.RowIndex].Cells[5].Value.ToString(); obj_companies.CompanyfaxNo = dtgridcompanyList.Rows[e.RowIndex].Cells[6].Value.ToString(); obj_companies.BranchId = dtgridcompanyList.Rows[e.RowIndex].Cells[7].Value.ToString(); obj_companies.Branchname = dtgridcompanyList.Rows[e.RowIndex].Cells[8].Value.ToString(); obj_companies.Address = dtgridcompanyList.Rows[e.RowIndex].Cells[9].Value.ToString(); obj_companies.country =Convert.ToInt32( dtgridcompanyList.Rows[e.RowIndex].Cells[10].Value.ToString()); obj_companies.state = Convert.ToInt32(dtgridcompanyList.Rows[e.RowIndex].Cells[11].Value.ToString()); obj_companies.city = Convert.ToInt32(dtgridcompanyList.Rows[e.RowIndex].Cells[12].Value.ToString()); obj_companies.Emailid = dtgridcompanyList.Rows[e.RowIndex].Cells[13].Value.ToString(); obj_companies.pincode = dtgridcompanyList.Rows[e.RowIndex].Cells[14].Value.ToString(); obj_companies.contactnumber1 = dtgridcompanyList.Rows[e.RowIndex].Cells[15].Value.ToString(); obj_companies.contactnumber2 = dtgridcompanyList.Rows[e.RowIndex].Cells[16].Value.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)