retrieving data field from when binding a Datagrid to a dataset 
Author Message
 retrieving data field from when binding a Datagrid to a dataset

Hi,
The Datagrid control is very useful and quick to use.

Is there a way to retrieve every single field from the record which
will be displayed, to apply for example a check function?

Thx,
Chris



Tue, 08 Mar 2005 17:30:13 GMT  
 retrieving data field from when binding a Datagrid to a dataset
Hi,

you can gain access to the current record through the DataBindingManager of
your control/form. In case of the datagrid this DataBindingManager will be a
CurrencyManager which holds the current row. You can cast this row from a
DataRowView into your own type and access all of its values...
Pls refer to the online help regarding DataBinding and the various
DataBindingManagers for more details.

Rgs,
Thorsten



Quote:
> Hi,
> The Datagrid control is very useful and quick to use.

> Is there a way to retrieve every single field from the record which
> will be displayed, to apply for example a check function?

> Thx,
> Chris



Wed, 09 Mar 2005 06:50:18 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. data binding : Binding custom business objects to datagrids

2. DataGrid bound to DataSet or DataView?: AllowNew, AllowDelete

3. DataSet manipulation and DataGrid Binding

4. DataGrid not updating DataSet it is bound to

5. datagrid/dataset binding

6. How can I bind xml data to DataSet?

7. retrieving dataview or datagrid filtered data

8. Retrieve Data From Datagrid

9. Binding data to datagrid

10. ADO Data control bind to ADO DataGrid

11. : DataGrid cannot initialize data binding?

12. : DataGrid cannot initialize data binding?

 

 
Powered by phpBB® Forum Software