You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Pages: 1
Topic closed
How to binding dataset
I used this to a WPF Application,
Can I use loop "sheet[1, 1] = 1234567890;" like this to binding the dataset to the sheet?
Last edited by zhaochunyu0104 (2015-08-13 09:25:45)
Offline
Hi! If you are using a DataTable you could just set the instance of DataTable onto worksheet, like:
var adapter = new DataSet1TableAdapters.MyTableAdapter();
var dt = adapter.GetData();
worksheet["A1"] = dt;
// or
worksheet[1, 1] = dt;
See https://reogrid.net/faq/fill-grid-with-datatable/
Regards, Jing
Last edited by Jingwood (2015-08-14 02:58:27)
Offline
Hi! If you are using a DataTable you could just set the instance of DataTable onto worksheet, like:
var adapter = new DataSet1TableAdapters.MyTableAdapter(); var dt = adapter.GetData(); worksheet["A1"] = dt; // or worksheet[1, 1] = dt;
See https://reogrid.net/faq/fill-grid-with-datatable/
Regards, Jing
Thank you!
Offline
Pages: 1
Topic closed