Click here to Skip to main content
15,890,609 members
Home / Discussions / C#
   

C#

 
GeneralRe: Whoops, it worked! thanks Pin
Christian Graus4-Jul-04 15:04
protectorChristian Graus4-Jul-04 15:04 
GeneralWord 2003 & C# Pin
thesundancekid4-Jul-04 8:10
thesundancekid4-Jul-04 8:10 
GeneralRe: Word 2003 & C# Pin
Heath Stewart5-Jul-04 5:51
protectorHeath Stewart5-Jul-04 5:51 
Generalnoob - using WinConsole - need to compile Pin
insurgentpyro4-Jul-04 6:19
insurgentpyro4-Jul-04 6:19 
GeneralRe: noob - using WinConsole - need to compile Pin
Mike Dimmick4-Jul-04 12:06
Mike Dimmick4-Jul-04 12:06 
GeneralRe: noob - using WinConsole - need to compile Pin
insurgentpyro4-Jul-04 16:40
insurgentpyro4-Jul-04 16:40 
GeneralDateViews-style data binding vs. ValueModel data binding Pin
zet4-Jul-04 1:01
zet4-Jul-04 1:01 
GeneralRe: DateViews-style data binding vs. ValueModel data binding Pin
Heath Stewart5-Jul-04 6:00
protectorHeath Stewart5-Jul-04 6:00 
zet wrote:
is the DataView data binding flexible enough, even if my data is more a document than a table?

No, it is not. A DataView is created over a DataTable, which is a class used within a DataSet (any of which don't require you to use a DataView, but they will be more limited in functionality since the DataView supports filtering, sorting, etc.). A DataSet XML schema consists of 2- to 3-level elements (tabular data, as you said).

zet wrote:
can i bind a text field bi-directional to a property of an arbitrary object?

Yes; see the PropertyManager class in the .NET Framework SDK for more information. This is used in the same manner as the CurrencyManager class, which are both derivatices of the BindingManagerBase which is used by the Control.BindingContext property. Use the Control.DataBindings collection property to add bindings to objects (like another TextBox) for properties (like the Text property of your two TextBoxes).

zet wrote:
does the DataView data binding work when the widgets are on different forms?

A DataView is simply a class. So long as the instance is accessible on different forms, the controls can bind to them. The import thing to realize is that a BindingContext must bind to the exact same object and member name (like a DataSet and one of its table names, or just the DataTable itself).

--

There is nothing really provided in the .NET BCL (base class library) that provides the sort of binding you're asking for, but that's not to say it isn't possible (anything is possible when comparing Java and .NET, it's just that the JRE contains/lacks some stuff that .NET doesn't/does have).

This also sounds quite a bit like the MVC pattern (Model-View-Controller), or at least it would fit. CodeProject has several good articles about MVC, including Declarative Programming Of The MVC Pattern Within The Context Of DataBinding[^].

 

Microsoft MVP, Visual C#
My Articles
GeneralC# grid control - headers Pin
Andy H4-Jul-04 0:06
Andy H4-Jul-04 0:06 
GeneralRe: C# grid control - headers Pin
Heath Stewart5-Jul-04 6:04
protectorHeath Stewart5-Jul-04 6:04 
GeneralD3DXSaveSurfaceToFile() is nowhere to be found. Pin
3-Jul-04 18:36
suss3-Jul-04 18:36 
GeneralRe: D3DXSaveSurfaceToFile() is nowhere to be found. Pin
leppie3-Jul-04 20:20
leppie3-Jul-04 20:20 
GeneralRe: D3DXSaveSurfaceToFile() is nowhere to be found. Pin
Heath Stewart5-Jul-04 6:09
protectorHeath Stewart5-Jul-04 6:09 
GeneralRe: D3DXSaveSurfaceToFile() is nowhere to be found. Pin
Nick Z.5-Jul-04 8:50
Nick Z.5-Jul-04 8:50 
GeneralJIT Debugging Pin
allegator3-Jul-04 18:14
allegator3-Jul-04 18:14 
GeneralRe: JIT Debugging Pin
Heath Stewart5-Jul-04 6:15
protectorHeath Stewart5-Jul-04 6:15 
Questionwhy i can't run a c# app on win 2k without .net framework installed? Pin
jl_araya3-Jul-04 12:32
jl_araya3-Jul-04 12:32 
AnswerRe: why i can't run a c# app on win 2k without .net framework installed? Pin
Stefan Troschuetz3-Jul-04 13:00
Stefan Troschuetz3-Jul-04 13:00 
AnswerRe: why i can't run a c# app on win 2k without .net framework installed? Pin
Tom Larsen3-Jul-04 19:59
Tom Larsen3-Jul-04 19:59 
Generalthanx! Pin
jl_araya4-Jul-04 12:51
jl_araya4-Jul-04 12:51 
Generalnoob question about classes Pin
pidhead3-Jul-04 9:20
pidhead3-Jul-04 9:20 
GeneralRe: noob question about classes Pin
Colin Angus Mackay3-Jul-04 12:18
Colin Angus Mackay3-Jul-04 12:18 
GeneralRe: noob question about classes Pin
pidhead3-Jul-04 12:58
pidhead3-Jul-04 12:58 
GeneralRe: noob question about classes Pin
Colin Angus Mackay3-Jul-04 15:38
Colin Angus Mackay3-Jul-04 15:38 
QuestionAfter close MemoryStream, how to open it to read again? Pin
god4k3-Jul-04 7:17
god4k3-Jul-04 7:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.