Error 1:
ds.Tables[0].Count
is not valid, I suspect you mean
ds.Tables[0].Rows.Count
Errors 2 and 3 are both the same issue:
Rather than
a = ds.Tables[0].Rows["uname"].ToString()
It should be of the format:
a = ds.Tables[0].Rows[rownumber][columnname/columnnumber].ToString()