Archived Months
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet windows forms databinding > june 2007

Bound DataGridViewCheckBoxColumn Doesn't Pass Value
Posted by at 6/29/2007 11:58:05 AM
I have a DataGridView (DGV) bound to a BindingSource, which itself is bound to a custom list type that inherits from BindingList<T> (SortableBindingList) to add sorting capability. Within the DGV there is a bound DataGridViewCheckBoxColumn. The column is bound to a "Selected" member within the l...more >>


Cancel addition of new row
Posted by scott at 6/27/2007 4:35:25 PM
I have a simple Windows form bound to one SQL Server table using the BindingSource control. I would like to use the BindingNavigator control to navigate through records. One text box holds a required field. When I click the AddNew button on the BindingNavigator, a new record is added to the Data...more >>

bind to elements in a NameValueCollection, hashtable, or Dictionary?
Posted by Steve Alpert at 6/24/2007 12:22:28 PM
I'd like to create an object that has a field derived from one of the objects in the title such that I can bind simple controls (textboxes, etc) to individual elements of the collection such that: 1. The binding can be done at either runtime or designtime 2. If the entry doesn't exist, the b...more >>

binding source in a 3 layered aplication
Posted by Fanor at 6/22/2007 3:38:42 PM
Hi all, I have a windowsform (not an ASP .net) aplication with a data layer, a business layer, and a presentation layer. one business class has 5 metods; GetEmployees, GetEmployeeByID, DeleteEmployee, UpdateEmployee, and AddEmployee. I have a form with a grid control for the employees...more >>

BindingSource/Custom Object creating a HasChanges method?
Posted by timnels NO[at]SPAM gmail.com at 6/21/2007 6:35:31 PM
I have a custom business object that implements INotifyPropertyChanged and IEditableObject. The collection of these objects inherits from BindingList<T>. I created a BindingSource from which a grid (list of objects) and a detail groupbox where bunch of textboxes are bound to them. Problem i...more >>

Columnar Data in a DataGridView
Posted by max at 6/21/2007 1:44:21 PM
Dear Group, I'm just learning Windows Forms (just in time for it to be replaced by MS What's Next) and have a question concerning displaying columnar data in a single grid. My data is stored as a collection of columns, each of which contains an array of values as well as datatype info. I w...more >>

Deleting and creating controls via code
Posted by John at 6/20/2007 6:19:36 PM
Hi Is it possible to enumerate all controls on a form and then save the info in an xml file via code? Is it possible to reverse the process i.e. read info from and xml and recreate all controls on a blank form? I am just trying to find a way to cerate "templates" so users can choose which c...more >>

How to implement a business logic layer
Posted by Chris Zopers at 6/19/2007 12:19:45 AM
Hello, I would like to know what's the best way to implement a business logic layer between my user interface and my database. I would say I'd make a dll-project for the business logic layer and make classes that represent objects/tables. For example, if I have a table named 'tblPersons' I ...more >>



backgroundworker with typed dataset binding
Posted by mmcd79 NO[at]SPAM tampabay.rr.com at 6/17/2007 11:20:04 PM
I currently have a single threaded application that contains a strongly typed dataset (called dsdataset1) with 3 tables, all bound to comboboxes on my main form. This works in its current form (the datasets are filled on the form load event). I noticed a problem whereas the form doesn't dra...more >>

parse parameters from sql statement
Posted by Rick at 6/15/2007 9:52:13 AM
Is there some generic way to parse the parameters from a sql statement? If I start with a sql in this format: Insert into myTable (field1, field2, field3) values (@field1, @field2, @field3) I want to pull out all the words that start with "@". Right now I am stepping t...more >>

DataGridView and PropertyGrid
Posted by Andrew Brook at 6/14/2007 3:32:30 PM
Hi Everyone, I have an application which contains a DataGridView, a TreeView and a PropertyGrid. Various elements in the Tree have a custom class which implements IBindingList set as the Tag property. When a user clicks on the Tree element I want to display the items of the List in the Dat...more >>

Inserting row into user sorted, data-bound DataGridView
Posted by Dan Cooperstock at 6/13/2007 7:39:50 AM
I'm trying to insert a new row at a specific location of a data-bound DataGridView. I understand that you would normally do that by inserting the row into the bound DataTable. The use case is sort of like an accounting situation with a "split" - I am entering donations made by donors, and ...more >>

Load Combo Box from Joined tables?
Posted by RB at 6/9/2007 9:37:16 AM
How can a combo box with Name (DisplayMember) and ID (ValueMember) be loaded from joined tables? The process we use to load the combo box with a table is shown below. Can a table adapter be use instead of a table? In VS2005, one can add a table adapter to the SDF data set xsd design but, th...more >>

Quest: Adding ArrayList As ComboBox DataSource...
Posted by bj7lewis at 6/4/2007 11:11:10 AM
Hi, I have a XML file that I read & populate my ArrayList dervied class "ArrayListDerviedClass" to be used by many controls in my form. Now I first am looking to add the ArrayList to a ComboBox so based on the selected ComboBoxObj.Items[i] I can use ArrayListDerviedClassObj[i] to populate the ot...more >>

BindingNavigator
Posted by AlexS at 6/1/2007 10:57:42 AM
What approach is considered industry standard when dealing with big volume data source for BindingNavigator? Any experience anybody? Such that can't fit in available memory (like 100Mio records). ...more >>


DevelopmentNow Blog