https://i.sstatic.net/JGryQ.jpg
int ctr, len;
string gee;
t = kalliskaBillingDataSet.Tables["DealerDetail"];
len = t.Rows.Count - 1;
r = t.Rows[len];
string id = r["DealerID"].ToString();
gee = id.Substring(1, 3);
ctr = int.Parse(gee);
Input string was not in a correct format in the line::
ctr = int.Parse(gee);