Click here to Skip to main content
15,896,207 members
Articles / Programming Languages / Visual Basic

Exposing Custom-made Classes through a Webservice and Binding them to a DataGrid.

Rate me:
Please Sign up or sign in to vote.
4.84/5 (35 votes)
26 Feb 200311 min read 345.2K   1K   124  
How to expose custom-made classes through Webservice and bind them to datagrid
When you want to expose your custom made business objects through a webservice interface, and you want them to bind with a DataGrid, you have a problem that the generated proxy class exposes fields instead of properties. A possible solution is to generate at runtime, a wrapper for your proxy class.
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "CodeProjectMonitor", "CodeProjectMonitor.vbproj", "{CEE1727E-CC7B-4F66-BD72-BC38B2B7648D}"
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		ConfigName.0 = Debug
		ConfigName.1 = Release
	EndGlobalSection
	GlobalSection(ProjectDependencies) = postSolution
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{CEE1727E-CC7B-4F66-BD72-BC38B2B7648D}.Debug.ActiveCfg = Debug|.NET
		{CEE1727E-CC7B-4F66-BD72-BC38B2B7648D}.Debug.Build.0 = Debug|.NET
		{CEE1727E-CC7B-4F66-BD72-BC38B2B7648D}.Release.ActiveCfg = Release|.NET
		{CEE1727E-CC7B-4F66-BD72-BC38B2B7648D}.Release.Build.0 = Release|.NET
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Web Developer U2U
Saudi Arabia Saudi Arabia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions