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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
|