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 > july 2007

DataBoundSource has objects but DataBoundItem is empty in CellFormatting() event handler
Posted by Steve at 7/31/2007 8:46:45 PM
I must be missing something fundamental... I have your basic DataGridView with its DataBoundSource set to a collection object that is subclassed from BindingList<T>. Objects are added to the BindingList<T> collection. With the debugger I can see that the DataGridView.DataBoundSource shows a n...more >>


Does BindingSource.AddingNew work with a DataTable? (Part 1)
Posted by Jamie Risk at 7/27/2007 3:55:39 PM
I've been poking around the net, trying to get my BindingSource. AddingNew event handler to cooperate. Is it accurate that "AddingNew" doesn't work with a DataTable source? (ref below) - Jamie ref: (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=146061&SiteID=1)...more >>

Radio Button and DataSourceUpdateMode
Posted by Steve D. at 7/25/2007 4:24:07 PM
I have three radio buttons in a group on a form. I bind these to three boolean properties of a business object.This binding changes the behavior of the buttons. Let's say button1 is selected. When I click one time on button2, then button1 is unselected. I then must click a second time on b...more >>

BindingSource and currency management event question...
Posted by Jamie Risk at 7/25/2007 1:36:38 PM
I have several 'generations' of parent-child DataTable relations in my code, and was wondering how best to improve (fix) the following. When navigating through a parent table, I wan't to automatically update the child tables filters and displays. I've done this through the DataTable's Bindi...more >>

Readonly DataBinding Form
Posted by Stefano Bonazzi at 7/19/2007 12:00:00 AM
Hello, sorry for my english, i'm from Italy I have the following scenario: a form with controls binded to a bindingsource that is binded to a typed-dataset-table. I must have the form (and the control) in a readonly mode to prevent accidental write and allow modify after a keypress (F5). ...more >>

Limit textbox input
Posted by KenL at 7/18/2007 5:26:05 PM
I have a WinForm application that has Textbox controls bound to a model with SQL server columns of data type, money. I only want to allow values like 45.33 to be entered, and not 45.336. What is the best way to limit input to two decimal points of precision? Thanks, Ken ...more >>

C# SqlDataAdapter question: tracking changes?
Posted by Jamie Risk at 7/18/2007 1:26:19 PM
Hello, Can SqlDataAdapter track changes I've made in my C# DataTable structures? In the past few months I've written SQL scripts and windows forms code to present data to a user. Now, I'd like the user to be able to commit changes made in the form to the SQL table. To fetch data from th...more >>

Link forms whit same key
Posted by sigava77 via DotNetMonster.com at 7/18/2007 12:00:00 AM
Hi, How to call a form from other form and only display information with the same Key as the caller form? Ex: If I have a form with codproduct and want to call another form to only display information that contains as foreign key the same codproduct as the caller form. Thanks, Carla -- ...more >>



Sorting in DataGridView
Posted by Jack Jackson at 7/17/2007 2:31:35 PM
I have a DataGridView bound to a DataTable via a BindingSource object. Is there a way I can control how the sort comparisons are done when columns in the DataGridView are clicked? I can't see where the sorting is done. My guess is in the default DataView of the DataTable, but DataView doesn...more >>

Can I share a dataset among projects at design time?
Posted by Leon_Amirreza at 7/15/2007 8:08:51 PM
I have genearated a Typed DataSet in a C# project and am able to use it in the from designer (I can drop a dataset Object from tool box and Set its DataSetName Property this typed dataset very normally) my Question is: Can I share this typed dataset with other projects in solution so I can u...more >>

How to write a config setting at FormClosing
Posted by Paul at 7/15/2007 6:45:43 PM
I have bound the form's Location property to a userSettings setting "WindowLocation" using the configuration settings dialogs in vs2005. I can't within a few minutes figure out how to write out the setting on FormClosing event. I find the few docs on this totally obtuse. Can you explain how ...more >>

Binding to PropertyGrid - SelectedObjectsChanged event not raised...
Posted by Andrew Brook at 7/13/2007 12:00:00 AM
Hi Everyone, I've databound the SelectedObject property of a PropertyGrid to a list of objects that i have. When i select different objects the data appears fine in my PropertyGrid. However, I want to perform some checking on the object each time it changes. Because I had bound the data to ...more >>

Combobox parent child update problem
Posted by Raggy Mcfadden at 7/7/2007 7:52:01 AM
Hello, In a windows form I have 2 comboboxes. One depends on the values selected in the other. In a one-to-many relation. This is done by setting the datasource of the other to the relation between the two. It all works unless I change the value of only the first combobox. Then the other ...more >>

Problem with BindingSource.EndEdit
Posted by Henrik Skak Pedersen at 7/6/2007 1:17:03 PM
I have a quite complicated problem which I hope that I can explain right. I have a very simple form with three text boxes, one binding source and one binding navigator. The three text boxes are bound to the FirstName, LastName and the Age property on the Employee class which you can see below...more >>

update data bound listbox - get "System.Data.DataRowView"
Posted by radiolandog at 7/1/2007 4:48:26 PM
Hello, World! Good day to you! I am using VS 2005 and I have a listbox that is data bound to a column in a table on a SQL Express database. When I select the "New" button it calls an openFileDialog. I'd like to put the filename returned from the open file dialog into the listbox and update ...more >>


DevelopmentNow Blog