By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,285 Members | 2,109 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,285 IT Pros & Developers. It's quick & easy.

xsd.exe Generating "Friend" -vs- "Public" Dataset Property

P: n/a
I'm using xsd.exe to generate a typed-dataset. Then using typed dataset
tables (datatables containing two columns--a name and a value) to bind to
ASP.NET dropdown list controls (for the dropdown list option values).

All was fine with the binding, until I moved the dataset to a different
assembly, as I found out that the DataColumn property is "Friend" (in
VB.NET).

Could you point me how to make the DataColumn "public", or another work
around?

(following are the code fragments from the .vb dataset class generated from
xsd.exe showing the "friend" and "public" properties)

Thanks!

Andy

------
Public Class ServiceDetailsOptionDataTable
Inherits DataTable
Implements System.Collections.IEnumerable

Private columnDisplayText As DataColumn

Friend ReadOnly Property DisplayTextColumn As DataColumn <------- THIS
IS WHAT I'M TRYING TO BIND TO FROM A DIFFERENT ASSEMBLY************
Get
Return Me.columnDisplayText
End Get
End Property

End Class
Public Class ServiceDetailsOptionRow
Inherits DataRow

Public Property DisplayText As String
Get
Try
Return
CType(Me(Me.tableServiceDetailsOption.DisplayTextC olumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("Cannot get value because it is
DBNull.", e)
End Try
End Get
Set
Me(Me.tableServiceDetailsOption.DisplayTextColumn) = value
End Set
End Property

End Class

Feb 28 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.