ObjectDataSource for Windows Forms?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have recently started using the ObjectDataSource object to populate a
GridView in my ASP.Net application. I am recently interested in applying the
same functionality in my windows-based applications as well. Is there a
similar object available for windows?
 
Chris said:
I have recently started using the ObjectDataSource object to populate
a GridView in my ASP.Net application. I am recently interested in
applying the same functionality in my windows-based applications as
well. Is there a similar object available for windows?

No, windows databinding is done way differently than asp.net 2.0
databinding. The datasource control is more or less a controller in a
MVC pattern implementation, but in winforms you don't have that kind of
logic available.

FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 
I thought the OP was talking about databinding an Object to a Windows
form.
You can certainly do this. When creating your Data Source, you simply
specify that the data source is an Object rather than a data table or
dataset, etc. I have an entire Windows Form application with my classes
defined in a Business Layer, and they are bound to controls on my
Windows Forms as objects.

If I am misunderstanding what the OP is talking about, then never mind.
;-)

Robin S.
 
RobinS said:
I thought the OP was talking about databinding an Object to a Windows
form. You can certainly do this. When creating your Data Source, you
simply specify that the data source is an Object rather than a data
table or dataset, etc. I have an entire Windows Form application with
my classes defined in a Business Layer, and they are bound to
controls on my Windows Forms as objects.
If I am misunderstanding what the OP is talking about, then never
mind. ;-)

I don't think the OP was talking about that, as the ObjectDataSource
is the controller which controls when what happens :) In winforms
databinding, that's fragmented across a couple of objects, e.g.
currencymanager, bound object, control etc.


FB


--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 
Thanks for clarifying. I don't do ASP.Net stuff (yet), and that
is helpful to know.

Robin S.
 
Back
Top