Reading Dataset Value

  • Thread starter Thread starter Wayne Wengert
  • Start date Start date
W

Wayne Wengert

I am trying to assign the value of a field in a dataset to a grid (Farpoint
Spread). When I add this line of code:


FpSpreadMatchingNames.Sheets(0).Cells(jj, 1) =
ds.Tables("MatchingNames").Rows(jj).Item("LastName")



I get an error that "Item" is Read Only. So what? I am trying to read it?
How must this be coded?



Wayne
 
Duh!!! It was referring to the Item collection in my grid - not the dataset!

Wayne
 

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

Back
Top