Re: populate textbox from dataview

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mike (Mike_at_discussions.microsoft.com)
Date: 01/31/05


Date: Mon, 31 Jan 2005 11:51:02 -0800

I'll give this a shot, but the textboxes are only populated based on the
selection made by the user in the datagrid. The text box is not in the
datagrid, it is on the form below the grid. I'm not sure if your thinking the
textbox is in the grid or not. its not in the grid

"Cor Ligthert" wrote:

> Why don't you than try to change it as I told.
>
> You can do it as well like this.
>
> dsDetails = GetCars()
> txtName.DataBindings.Add("Text", dsDetail.Tables(0), "NAME")
> datagrid1.datasource = dsDetail.Tables(0)
>
> Dont't compare the webform datagrid with the winform datagrid, that is done
> by a lot of winform programmers for a webform datagrid. It are both grids
> which has a datasource and with that is in my opinin all said.
>
> Cor
>
>
>



Relevant Pages

  • Re: Dynamically create datagrid columns
    ... dynamically created grid looks marvelous. ... My problem is that my dynamically created textboxes, ... > | Subject: Re: Dynamically create datagrid columns ... > | Public Sub New ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: SQLCeResultSet does not update first row
    ... the DataSet for a bound datagrid. ... Ginny Caughey wrote: ... result set in the grid, but it's still the same principle. ... int recs = sqlCeCommand.ExecuteNonQuery; ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to use one datagrid to update/insert into another
    ... dsMassUpdate is your actual dataset that is going to be updated? ... dgMassUpdate is a datagrid that shows the dataset dsMassUpdate? ... Is dbMassUpdate your data grid that you are inserting their ... Dim cmdParam As SqlParameter ...
    (microsoft.public.dotnet.languages.vb)
  • Re: SQLCeResultSet does not update first row
    ... Although SqlCeResultSet is a DataReader and inherits from SqlCeDataReader, ... datagrid refreshed its view with "X's". ... Ginny Caughey wrote: ... result set in the grid, but it's still the same principle. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Datatable interer Original-Index beim Sortieren
    ... Einen Puffer für die Daten benötigst du immer, ... Objekt nun als "Unter"-Objekt im Grid enthalten ist oder über einen Verweis ... > Grid z.b. dem Datagrid passieren. ... dann musst du den Sort-Algorithmus schon an deine Belange anpassen. ...
    (microsoft.public.de.german.entwickler.dotnet.datenbank)