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

BindingList and ArgumentOutOfRange when bound to DataGridView
Posted by Jim Balo at 12/19/2007 11:24:31 PM
Hi, When I bind a BindingList<> to a DataGridView and then call RemoveAt(n) on it, I get ArgumentOutOfRange. Could someone explain why? Sample: public partial class TestForm2 : Form { private BindingList<Person> _personList = new BindingList<Person>(); public...more >>


Cant leave databinded comboboxes
Posted by erah at 12/18/2007 2:56:01 AM
Hi! I have som problems using drag n drop functionallity in visualstudio 2005. I have created a dataset from my sqlexpress with one main table and three valuetables using IDnumbers to get the realname of each child.. I then created a datagridview and changed the IDvalues ( FKs ) to data...more >>

Combobox DropDown Binding
Posted by SteveKing at 12/13/2007 4:08:01 PM
I'm having difficulty binding a combobox which is of the dropdownstyle of dropdown. According to documentation you can either select a value from the dropdown list or type a value into the textbox part of the control. If I bind to the SelectedValue as in '.DataBindings.Add("Text", bsComp, "C...more >>

Databinding problem on inherited form
Posted by Lynn at 12/12/2007 1:02:00 PM
In VS2005, I have a base form that is designed to be inherited by many other forms in an application. This base form contains various controls bound to a dataset (ds1). The dataset is set to Protected so the base control can have access to it. I created an inherited form (call it Form2) fro...more >>

DataBinding & ErrorProvider
Posted by Marco Schwarz at 12/11/2007 9:38:25 AM
Hi, I add a ErrorProvider on a form if (string.IsNullOrEmpty(txtPersonName.Text)) { m_ErrorProvider.SetError(txtPersonName, "Name is incorrect"); } else { m_ErrorProvider.SetError(txtPersonName, null); } add a BindingList<Person> personList object to the class and set the...more >>

Postback problem when I am using simple data binding on a overridden TextBox Control
Posted by Henrik Skak Pedersen at 12/5/2007 3:08:18 PM
Hello, This example has been cut from a larger context, therefore it looks very simple. It has just been created to illustrate the error. I have overridden the standard TextBox so it now looks like this: public class MyTextBox : System.Windows.Forms.TextBox { protected st...more >>



DevelopmentNow Blog