Something like this should get you over the problem (warning - untested)
int atry;
if (row.Cells["Slno"].Value != null)
{
if (int.TryParse(row.Cells["Slno"].Value.ToString(), out atry))
{
chk.Slno = atry;
}
}
if (row.Cells["startno"].Value != null)
{
if (int.TryParse(row.Cells["startno"].Value.ToString(), out atry))
{
chk.startingno = atry;
}
}
if (row.Cells["noofcheques"].Value != null)
{
if (int.TryParse(row.Cells["noofcheques"].Value.ToString(), out atry))
{
chk.Noofcheques = atry;
}
}
if (row.Cells["endingno"].Value != null)
{
if (int.TryParse(row.Cells["endingno"].Value.ToString(), out atry))
{
chk.Endingno = atry;
}
}
if (row.Cells["Status"].Value != null)
{
bool abtry;
if (bool.TryParse(row.Cells["Status"].Value.ToString(), out abtry))
{
chk.status = abtry;
}
else
{
chk.status = false;
}
}