I have the following code which connects to a database and stores the data into a dataset.
What I need to do now is get a single value from the data set (well actually i
I prefer to use something like this:
int? var1 = ds.Tables[0].Rows[0].Field("ColumnName");
or
int? var1 = ds.Tables[0].Rows[0].Field(3); //column index