CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: DataGrid

  1. #1
    Join Date
    Nov 1999
    Location
    Maryland - USA
    Posts
    11

    DataGrid

    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.



  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: DataGrid

    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

  3. #3
    Join Date
    Nov 1999
    Location
    Maryland - USA
    Posts
    11

    Re: DataGrid

    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


  4. #4
    Join Date
    Nov 1999
    Location
    Maryland - USA
    Posts
    11

    Re: DataGrid

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured