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

Listbox bound to BindingList
Posted by Jack Jackson at 11/23/2007 1:54:26 PM
VB2005. I have a ListBox bound to a BindingList that is initially empty. As soon as I add an item to the BindingList, the call to Add throws an exception: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'. Parameter name: SelectedIndex The following code demonstrates this: ...more >>


WindowsForm Designer databinding null reference exception
Posted by Giorgio Parmeggiani at 11/20/2007 12:07:41 PM
I have a windows form project. When I try to define a databinding, in the designer window, for a control, I use (DataBindings) attribute, I obtain immediately a null reference exception, only for this project! It happens when I click on the attribute in the designer, so I cannot debug ...more >>

Concurrency violation adding records Why?
Posted by Rob Dob at 11/16/2007 4:09:00 PM
Hi, I'm getting periodic concurrency violations while adding new records, can someone please tell me how to resolve this. I have an application that is running multi-user, approx 60+ users and for some reason my application is throwing a concurrency violation when adding a new record, I hav...more >>

Binding an Object Property with DateTimePicker
Posted by PG at 11/16/2007 12:59:01 PM
I'm binding an business object's property (DateTime datatype) with a DateTimePicker control on my windows form using below mentioned code. While loading the form, the control is getting its value correctly by hitting the Property Get, but when I change the date on the control, its not calling ...more >>

Custom TypeConverter, vsFlexGrid, Binding
Posted by Steve D. at 11/14/2007 8:57:08 AM
I wrote a custom type converter class to convert a Single to a string with knowledge of a "missing" value. I decorated a property of my business object, of type Single, to use this custom TypeConverter. When I bind this property to a text box, (Windows Forms) the type converter g...more >>

BindingSource bound type.
Posted by bruce.m.pearson NO[at]SPAM gmail.com at 11/2/2007 6:40:52 PM
I'm having a tough time figuring out how to get the type that a binding source is bound to..at least in a consistant manner. What I have been doing is: (aBS is a BindingSource) Type aType = aBS.List.GetType(); if (aType.IsGenericType) { ...more >>

Binding to a Coarse Grained Object
Posted by news.microsoft.com at 11/2/2007 2:16:30 AM
I have an object called Invoice which has as one of its members, an object called customer which is of type Customer. Class Customer has properties such as CustomerId, CustomerName, etc. In my form, InvoiceDetailForm, I bind the controls on the form to a binding source InvoiceBS which is tie...more >>

Newbie question: How to implement CRUD
Posted by Magno Machado at 11/1/2007 10:32:57 AM
I have displayed a DataTable in a DataGrid, and now I want to implement insert, update and delete operations on this table. How can I do that? I had tried to call DataTable.NewRow() to insert a new row, but I didn't see any changes in the view. ...more >>




DevelopmentNow Blog