Hey everbody,
I need a bit of assistance from you guys to help me out here.
I have a datagridview control on my form and would like to pass
rows from it to a procedure as a datagridviewrowcollection (thank god for intellisense!). In this procedure I then create a datatable and attach it to
my global dataset. (For future use with Crystal Reports) The reason I would
use the dgvrc is because you can "print" one row by clicking a specific cell OR
you can print ALL rows at once.
I've tried something as easy as below but that doesnt work.
e.rowindex comes from datMain_CellClick
I've tried creating datarows from the datagridviewrows but I end up writing
much more code for something I think can be solved very easy.
Can you guys help me out, anything?
PS: FIRST POST!!!
I need a bit of assistance from you guys to help me out here.
I have a datagridview control on my form and would like to pass
rows from it to a procedure as a datagridviewrowcollection (thank god for intellisense!). In this procedure I then create a datatable and attach it to
my global dataset. (For future use with Crystal Reports) The reason I would
use the dgvrc is because you can "print" one row by clicking a specific cell OR
you can print ALL rows at once.
I've tried something as easy as below but that doesnt work.
VB.NET:
dgvrc.add(datMain.rows(e.rowindex))
e.rowindex comes from datMain_CellClick
I've tried creating datarows from the datagridviewrows but I end up writing
much more code for something I think can be solved very easy.
Can you guys help me out, anything?
PS: FIRST POST!!!