Beginner Question

  • Thread starter Thread starter James T.
  • Start date Start date
J

James T.

Hello!

How I can definie a public property containing an array of Datarows?

Any code sample would be fine..

Thanks!
James
 
Hi,

something like

Private _rows As DataRow()

Public Property Rows As DataRow()
Get
Return _rows
End Get
Set (ByVal Value As DataRow())
_rows=Value
End Set
End Property

Of course, you also have the task of setting the rows to this. Anyways.this
is an example of property whicj exposes a DataRow array from private
variable (having also dataRow array as type)
 

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