P
pmz
Dear Friends,
1. I've created an object named i.e. Cup_Event with few properties
(getters & setters).
2. I've created DataGridView, with data source created from binding
source based on object mentioned above.
this->cupEventBindingSource->DataSource =
Cup:ata::Cup_Event::typeid;
The problem is, I'm not totally sure how do I fill my DGV with data?
I've done it before via BindingSource > DataSet < DbDataAdapter <
Fill, etc. and worked perfectly. Now I've tried something else, and
I'm stuck in the filling moment.
For sure I need to fetch data - the question is, shall I use
DataAdapter (MySqlDataAdapter/SqlDataAdapter) or DataReader and
building list of objects (Cup_Event)? Or maybe I use object for
building the DGV columns (VS designer) and further I may use the
DataSet-filling-method?
Thank you for any help,
Przemek M. Zawada
1. I've created an object named i.e. Cup_Event with few properties
(getters & setters).
2. I've created DataGridView, with data source created from binding
source based on object mentioned above.
this->cupEventBindingSource->DataSource =
Cup:ata::Cup_Event::typeid;
The problem is, I'm not totally sure how do I fill my DGV with data?
I've done it before via BindingSource > DataSet < DbDataAdapter <
Fill, etc. and worked perfectly. Now I've tried something else, and
I'm stuck in the filling moment.
For sure I need to fetch data - the question is, shall I use
DataAdapter (MySqlDataAdapter/SqlDataAdapter) or DataReader and
building list of objects (Cup_Event)? Or maybe I use object for
building the DGV columns (VS designer) and further I may use the
DataSet-filling-method?
Thank you for any help,
Przemek M. Zawada