Bill Blogs in C#

Bill Wagner discusses C#, LINQ, and other items of interest

Browse by Tags

All Tags » C# » DataBinding (RSS)
Sorry, but there are no more tags available to filter with.
Samples from Monday's Webcast
Have been uploaded The zip file below contains the samples from Monday's webcast, and an additional samples that adds the following (based on questions I received): The binding source is serializable. It simply saves to a hardcoded file, but you get...

Posted by wwagner | with no comments

Filed under: ,

Yet another reader question
From an older article that is still online, comparing my approach to another author's. Yet another reader question (from an older article online at fawcette.com) I just read your VS Magazine article (see links below) regarding data-driven client validation...

Posted by wwagner | with no comments

Filed under: ,

Data Binding with immutable Types?
It does work, if you are not changing the data. In fact, that's the preferred way if the user is not allowed to change the data. I received the following question (which does related to Effective C#). I thought the discussion was of general interest...

Posted by wwagner | with no comments

Filed under: ,

Of DataBinding and Value Types
Copies and boxes and performance, Oh My. This caught me and members of a client team recently, so I thought I would share it. In a Windows application, we created a simple value type to store a couple properties. Something like this: public struct WeatherObservation...

Posted by wwagner | with no comments

Filed under: ,

A Reader Question on DataBinding
This one asks how to handle Properties of embedded objects. Question: Bill, After reading your paper on Visual Studio Magazine, I spent a few hours trying to bind to a subproperty and... I'm wondering if it is possible! I first coded a ContactList...

Posted by wwagner | with no comments

Filed under: ,

Question from a reader about DataBindings
A few questions and some answers about how to best perform data binding when you create windows forms. Question: (or actually a few questions. Answers are inline) I'm an up-and-coming .net developer whose trying to implement databinding to business...

Posted by wwagner | with no comments

Filed under: ,

DataBinding and Custom Collections
ITypedList and when to use it. Over the past two weeks, I’ve gotten two questions relating to Windows Forms Databinding and custom collections. In the first case, the developer had created a collection that held polymorphic items: public class MyBaseClass...

Posted by wwagner | with no comments

Filed under: ,

How to format data in the Data Grid
Question and answer on the DataGrid, Datasets.How do you format the information, and trap user interaction. Question: I have a question, do you happen to know how to format data as it is going into a datagrid from a dataset and dataadapter? I want to...

Posted by wwagner | with no comments

Filed under: ,

Of Dataset.GetChanges and Diffgrams
The state of the change has a bearing on how you should examine the changes in a dataset. Q: Why does Dataset.GetChanges() return an empty dataset? Examine the following code: The dataset stored in ChangedDoc.xml is empty. Why? ds.ReadXml(" http...

Posted by wwagner | with no comments

Filed under: ,

Creating Data Binding Classes.
Question and Answer on creating and using DataBinding in your own types. Q : When you bind to business objects, then you not only want to bind to the properties of the objects, often you want to display properties of related objects. Example: You have...

Posted by wwagner | with no comments

Filed under: ,