Re: Combobox with empty or null values
From: Volker Jobst (buddde_at_gmx.de)
Date: 06/02/04
- Next message: Ernest Morariu: "Re: Custom controls in datagrid"
- Previous message: CJ: "Re: Custom controls in datagrid"
- In reply to: Herfried K. Wagner [MVP]: "Re: Combobox with empty or null values"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 2 Jun 2004 11:21:44 +0200
Thanks for your help, now it works fine.
I knew this bug before but I did not think that it would be the reason for
my problem too.
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:ud$ax28REHA.3452@TK2MSFTNGP10.phx.gbl...
> * "Volker Jobst" <buddde@gmx.de> scripsit:
> > I'm using the Windows Forms Combobox to display my employees stored in
the
> > SQL Server. I use the DisplayMember / ValueMember thing and it works
fine.
> >
> > But there is a problem when I try to let the combobox emtpy e.g. no
employee
> > should be selected. The database contains no employee with the ID 0, but
> > using this code the combobox shows the first entry and the selectedindex
is
> > 0. So I tried to set the selectedindex to -1, but even this does not
work
> > well.
>
> BUG: ComboBox Does Not Clear When You Set SelectedIndex to -1
> <URL:http://support.microsoft.com/?id=327244>
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
- Next message: Ernest Morariu: "Re: Custom controls in datagrid"
- Previous message: CJ: "Re: Custom controls in datagrid"
- In reply to: Herfried K. Wagner [MVP]: "Re: Combobox with empty or null values"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|