Re: populate textbox from dataview
From: Mike (Mike_at_discussions.microsoft.com)
Date: 01/31/05
- Next message: Magnus Krisell: "Re: MDI Repaint Problem"
- Previous message: Don: "Re: need some realworld examples"
- In reply to: Cor Ligthert: "Re: populate textbox from dataview"
- Messages sorted by: [ date ] [ thread ]
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
>
>
>
- Next message: Magnus Krisell: "Re: MDI Repaint Problem"
- Previous message: Don: "Re: need some realworld examples"
- In reply to: Cor Ligthert: "Re: populate textbox from dataview"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|