[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 159
  • Last Modified:

How to read Row value after using Select method for datatable

Hello,

I am using a select method on a datatable to find a certain row. I am finding the  datarow using the following code. This works fine


Dim SiteCurrencyDescriptionRow() As DataRow

            SiteCurrencyDescriptionRow = dtCurrency.Select("chCurrencyCd =" & "'" & CType(dtSiteCurrencyCode.Rows(1)("chCurrencyCd"), String) & "'")

           
How do I access the 1st coloumn value of the sitecurrencydescriptiondatarow.

I am doing something like this but it dont work.
txtsitecurrency.text =  ctype(SiteCurrencyDescriptionRow.getvalue(0), string)

where am i going wr




0
anwarmir
Asked:
anwarmir
  • 2
1 Solution
 
RonaldBiemansCommented:
txtsitecurrency.text =  SiteCurrencyDescriptionRow.item(0)
0
 
anwarmirAuthor Commented:
Hi I cant use Item as there is an error

"Item is not a member of system array"
0
 
RonaldBiemansCommented:
A sorry ,

txtsitecurrency.text =  SiteCurrencyDescriptionRow(0).item(0)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now