Hi,
In your code there is one problem
string ID = dset.Tables[0].Rows["ID"].ToString();
here you haven't mentioned row no., you have only mentioned column name ie. ID
rewrite ur code as below
string ID = dset.Tables[0].Rows[n]["ID"].ToString();
where 'n'= index of row starting from 0.