Need some help with DataGrids (DataGrid-->DataGrid, DataGrid-->Dataset, DataGrid-->XML) 
Author Message
 Need some help with DataGrids (DataGrid-->DataGrid, DataGrid-->Dataset, DataGrid-->XML)

[This followup was posted to microsoft.public.dotnet.general and a copy was sent to the cited author.]

#1  I have 2 windowsforms, and they each have a datagrid in them.  How
do I copy "easily" copy the contents of the one datagrid to the other?  
(Assuming that the datasource of the 1st datagrid is no longer
available)

#2  How do I "export" a datagrid to a dataset?  All examples of
datagrids/datasets show dataset-->datagrid -not- datagrid-->dataset.  
Anyone?

#3  (Well if I had an answer to #2 I guess I'd have an answer to #3)  I
saw this asked before and noone answered it...  How do you export a
datagrid to XML?  If we could export to a dataset, it would be easy from
there... but is there a better way?



Sun, 13 Feb 2005 19:57:57 GMT  
 Need some help with DataGrids (DataGrid-->DataGrid, DataGrid-->Dataset, DataGrid-->XML)
You should be able to set the datasource property of the
second grid to the data source property of the first grid.
You can also set the datasource property of the datagrid
to a dataset.

Quote:
 >-----Original Message-----
>[This followup was posted to

microsoft.public.dotnet.general and a copy was sent to the
cited author.]
Quote:

>#1  I have 2 windowsforms, and they each have a datagrid
in them.  How
>do I copy "easily" copy the contents of the one datagrid
to the other?  
>(Assuming that the datasource of the 1st datagrid is no
longer
>available)

>#2  How do I "export" a datagrid to a dataset?  All
examples of
>datagrids/datasets show dataset-->datagrid -not- datagrid-
->dataset.  
>Anyone?

>#3  (Well if I had an answer to #2 I guess I'd have an
answer to #3)  I
>saw this asked before and noone answered it...  How do
you export a
>datagrid to XML?  If we could export to a dataset, it
would be easy from
>there... but is there a better way?
>.



Sun, 13 Feb 2005 22:29:05 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How do I set the Datagrid row to be same size as the datagrid window

2. Using datagrid as datasource for another datagrid

3. Datagrids inside a Datagrid

4. Copy from Datagrid to datagrid

5. Updating datagrid with requery, datagrid goes to top

6. datagrid -> refresh

7. ASCII multicolumn file --> something like a DataGrid

8. datagrid -> refresh

9. Datagrid -> Checkboxes

10. DataGrid >>>> "Cannot Initialize DataBindings"

11. Binding a dataset to a datagrid using the designer

12. vb.net datagrid updating underlying dataset

 

 
Powered by phpBB® Forum Software