Re: DropDown's DataSource/DataMember

From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 01/07/05


Date: Fri, 7 Jan 2005 18:01:23 +0100

Greg,

> I have never ran into this with webforms either and I use databinding with
> DataTextField and DataValueField all the time. Do the same
> case-sensitivity rules apply???
>

You mean this one.
textbox1.DataBindings.Add(New Binding("Text", dataset1.Tables(0),
"LastName"))

Without testing now and AFAIK, Yes

Cor



Relevant Pages

  • Re: databinding a Dropdownlist to another dropdownlist
    ... You also need the DataValueField and DataTextField defined, ... Is my format incorrect? ... Tom ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: bind columns to dropdownlist
    ... I needed a dataset and then I could set the datatextfield ... and datavaluefield to the fields in the table. ... SqlConnection conn = new ... > catch (Exception ex) ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • RE: Create SelectList
    ... the constructor you specifiy a DataValueField and a DataTextField. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: can you bind to a drop down list
    ... Set the DataTextField to the column ... Set the DataValueField ... > in a table from an SQL server database. ... > I have already set up an sql connection, data adapter and dataset as well ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Dropdownlist with multiple data values?
    ... Has anyone encountered the need to have more than one datavaluefield? ... At present, I'm returning two columns, a StateID and a StateDesc and ... they are being put into the datavaluefield and datatextfield ... I could REALLY do with binding another column to the dropdownlist as I ...
    (microsoft.public.dotnet.languages.csharp)