{"id":728,"date":"2008-01-04T19:56:57","date_gmt":"2008-01-05T02:56:57","guid":{"rendered":"http:\/\/members.crystalreportsbook.com\/crystal-reports-xi\/1713-datagrid-control\/"},"modified":"2008-01-04T19:56:57","modified_gmt":"2008-01-05T02:56:57","slug":"1713-datagrid-control","status":"publish","type":"post","link":"http:\/\/www.crystalreportsonlinetraining.com\/training\/1713-datagrid-control\/","title":{"rendered":"17.13 DataGrid Control"},"content":{"rendered":"<h3>DataGrid Control<\/h3>\n<p>Similar to printing a manually populated dataset is printing the contents of a DataGrid control. You can have a datagrid on a form and give the user the option to send the datagrid contents to a report. The user modifies the datagrid and sends its values to a report without having to save it first.<\/p>\n<p>Fortunately, this is very easy because the datagrid is designed to work with datasets. The datagrid has a DataSource property that can be explicitly cast as a DataSet object. In Listing 17-7, the MyDataSet parameter is set to the DataSource property.<\/p>\n<p>         <code_Caption>Listing 17-7. Getting the DataSet object from a DataGrid control.<\/code_Caption><br \/>\n         <code>Private Sub FillDataset(ByVal MyDataSet As DataSet)<\/code><br \/>\n         <code>MyDataSet = CType(DataGrid1.DataSource, DataSet)<\/code><br \/>\n         <code>End Sub<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DataGrid Control Similar to printing a manually populated dataset is printing the contents of a DataGrid control. You can have a datagrid on a form and give the user the option to send the datagrid contents to a report. The user modifies the datagrid and sends its values to a report without having to save [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,2],"tags":[],"class_list":["post-728","post","type-post","status-publish","format-standard","hentry","category-chapter-17-dynamic-data-sources","category-crystal-reportsnet-2003","entry"],"_links":{"self":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/comments?post=728"}],"version-history":[{"count":0,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/posts\/728\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/media?parent=728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/categories?post=728"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.crystalreportsonlinetraining.com\/training\/wp-json\/wp\/v2\/tags?post=728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}