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