how to pull data out of datasets

C

Caboclo

In a project I am working on I am reading a time sheet and retrieving
that data in a dataset. I want to pick the data I want out of that
dataset and return only the data I want. I have not seen any methods
that let me return the values of particular columns. I can see the
columns, but do not know how to return the values. Here is the method
I am using -
public ReadDataSet Logon()
{
loggedOn = logMeIn(baseUrl);

WebSvcTimeSheet.TimesheetDataSet timeSheetDS;

Guid myUid = resourceSvc.GetCurrentUserUid();

WebSvcAdmin.TimePeriodDataSet timeperiodDS =
adminSvc.ReadPeriods(WebSvcAdmin.PeriodState.Open);
Guid periodUid = timeperiodDS.TimePeriods[0].WPRD_UID;

timeSheetDS = timeSheetSvc.ReadTimesheetByPeriod(myUid,
periodUid, WebSvcTimeSheet.Navigation.Current);

ReadDataSet myDataSet = new ReadDataSet();

// It is in this next line that I don't know how to return the
value of the TS_CACHED_RES_NAMEColumn
myDataSet.name =
(string)timeSheetDS.Headers.TS_CACHED_RES_NAMEColumn.....

loggedOff = logMeOff();

return myDataSet;
}

Any comments or suggestions would be helpful.

Thank you,

Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top