Printing a datagrid/dataset in c#
I have the following code in c#:
Code:
void SetupGridPrinter() |
The dataGridPrinter object wants a datatable. You passed a dataset. An implicit cast is not allowed, although they are not really the same things anyway. The dataset can contain datatables. Does dataGridPrinter really take a datagrid object as a parameter? If it does, passit the correct datatable from the dataset object such as:
Instead of "Dataset1", use "Dataset1.Tables["tableName"]; |
All times are GMT -5. The time now is 04:57 AM. |