I have a data adapter with a method that that takes a variable and returns all entries that matches the variable:
e.g.
TableAdaptor ta = new TableAdaptor();
DataTable dt = ta.GetUserByUserID(UserID);
But I can't for the life of me figure out how to return a single cell value from the method. Since it's a strongly typed datatable, the column name becomes a property of the datatable so I can do:
dt.UserIDColumn.ToString();
But this returns the name of the column and not the value of the cell. And if I try:
dt.Rows[0]
there is no column property according to VS10's intellisense. What am I missing here?