Click to See Complete Forum and Search --> : DataGrid


Heru
November 30th, 1999, 07:14 AM
Need help with DataGrid.
I have a form with DataGrid bound to database (access). I have another form with another DataGrid. What I need to do is to make the user able to choose one or more row(s) from the first DataGrid in the first form and then "copy" what has been chosen into the second DataGrid in the second form. I've been trying to look for DataGrid's properties & methods that can do this unsuccessfully. Can VB actually do this thing? Or worst come to worst can I "copy" into texboxes in the second form instead of DataGrid ?
I appreciate anyone who can help me very very much..I'm kinda DESPERATE : ( , Thanks, Alec.

Ravi Kiran
December 1st, 1999, 05:56 AM
Just the other day i was asking a similar question.. just search for DBGrid, may be you will hit it.

DbGrid has a SelStart and SelEnd or something similar, using which you can get the data and transfer. I dont know how you can get multiple rows to be selected in Bound-Mode, because each selection means updating the current record, ( with attendent reposition event in the Data control, if you have one). so multiple rows selection is not possible in Bound mode, so you should try unbound.

If you can hold on for a day or two, i will see if i can generate an example!!.. for i am also working on similar thing now..

RK

Heru
December 4th, 1999, 08:13 PM
Hi Ravi!
Thank you so much for your response. I'll try to do some research with your suggestion. But if you've found out the answer and work for you I'll appreciate
it if you could show me how you did it. I'll let you know as soon as I find the answer to my problem ok?
Thanks again! Heru

Heru
December 11th, 1999, 12:47 PM
Hi Ravi where are you????
I've tried your suggestion but I'm confused as to how should I refer the text inside the DataGrid?
These text are in cells right?
I went to MSDN library for help but their example using actual text not text inside a cells.
Have you found solution with yours??? I'm desperate Ravi..please help!!! thanks