Re: Display results from a DataGrid in labels
- From: "Mark J. McGinty" <mmcginty@xxxxxxxxxxxxxxx>
- Date: Wed, 6 Apr 2005 02:55:08 -0700
"lukegregory" <lukegregory@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1023A022-1FC9-423E-8DCC-77E7A05FDD9C@xxxxxxxxxxxxxxxx
>I have a datagrid containing data from an xml file. Is it possible that
>when
> a row on the datagrid is clicked these results can update a series of
> corresponding labels elsewhere on the form? e.g. the datagrid contains the
> columns, FirstName and LastName. When a row is highlighted I'd like the
> selected FirstName and LastName to appear in labels at the top of the
> form.
Yes, easily possible
Process the grid's Click event, in which you will access values from the
grid's currently active row, like this:
Grid.Columns.item(n).Text
where n is either the column position or the field name of the recordset
column that underlies the grid.
-Mark
.
- Follow-Ups:
- Re: Display results from a DataGrid in labels
- From: lukegregory
- Re: Display results from a DataGrid in labels
- References:
- Display results from a DataGrid in labels
- From: lukegregory
- Display results from a DataGrid in labels
- Prev by Date: query help please
- Next by Date: ADO RecorSet AddNew failed without exception, and so the first record is updated
- Previous by thread: Display results from a DataGrid in labels
- Next by thread: Re: Display results from a DataGrid in labels
- Index(es):
Relevant Pages
|