Re: Datagrid source= datarow array

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Cor Ligthert (notfirstname_at_planet.nl)
Date: 09/14/04


Date: Tue, 14 Sep 2004 10:21:40 +0200

Rodchar,

You are probable talking about a combobox (dropdown and dropdownlist are
controls from a webform).

Probably you can use binding the combobox text to the column in your
datasource table using something as

combobox.DataBindings.Add(New Binding("Text", dataset1.Tables(0),
"Mycolumname"))

(know that the combobox in my opinion acts sometimes strange with binding)

I hope this helps?

Cor

"rodchar" <rodchar@discussions.microsoft.com> >

On a form, my dropdown list is bound to a column in my master table. The
> datagrid is now, thanks to you, bound to the data relation name. However,
I
> don't know how to sync the datagrid to the drop down list selected value.
>
> "Cor Ligthert" wrote:
>
> > You nowhere told you where using a dropdownlist, do I understand that
this
> > is a Webform application. However this confuses me, because in that do
as
> > far as I know not exist tablestyles?
> >
> > Cor
> >
> >
> >



Relevant Pages

  • Re: Calculating off combobox selections
    ... selection from the dropdown combobox list in field A. That's it! ... 'number') in field 'B' based on the selection from the dropdown combobox. ... There is no 'combo box' form field in Word 2003, ...
    (microsoft.public.word.docmanagement)
  • Re: bind a dropdwn box to 2 tables - one fills it and the other records it.
    ... BindingSourceA = the binding source for table A. ... You need to first drag the table that fills the dropdown onto ... used as the source of the data for the combobox. ... assigned to the appropriate data source in the VS-generated ...
    (microsoft.public.dotnet.languages.csharp)
  • DataGridView Bound ComboBoxColumn cell take several seconds to show edit control
    ... I am binding a custom object list to a ComboBox ... dropdown the ComBox when the user hits Enter. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: ComboBox Default values
    ... What I have done in situations like yours is to create a special combobox ... use the ToStringmethod of your class to determine what to display to the ... First for the Company dropdown I would data bind ... >> If this is the case then you should be able to use the SelectedValue ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Create control with drop-down similar to ComboBox
    ... unfortunately I can not use the combobox to do as I want as I need to ... combobox in the dropdown portion. ... private void button1_Click ... To make the drop-down portion "float", I think you may have a try ...
    (microsoft.public.dotnet.framework.windowsforms)