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

Thread: DataGrid

  1. #1
    Join Date
    Jul 2000
    Location
    Slovenia
    Posts
    77

    DataGrid

    Hi all
    I have already send similar message to this forum earlier, and hadn't find out the solution yet.
    Basicly i have to querry recordsets. First is connected to a DataGrid control. I use second recordset for editing particular records. Well, after data is modified, i first call second recordset's Update method and then first recordset's Requery method, to asure that both recordsets have the same data. Well the thing is that DataGrid control doesn't reflect modifications made in second recordset.

    Well, thanks for reading such a long post, and thanks in advance for any answering, thinman


  2. #2
    Join Date
    Jul 2000
    Location
    Hawaii
    Posts
    281

    Re: DataGrid

    it works fine here with a grid and a textbox connected to 2 data controls

    perhaps you need to close and reopen the 2nd recordset after the update to flush a buffer - not likely but it's the only thing I can think of


  3. #3
    Join Date
    Jul 2000
    Location
    Slovenia
    Posts
    77

    Re: DataGrid

    I'm using just one DataEnvironment designer, containing both querries!

    Thanks, thinman


  4. #4
    Join Date
    May 2001
    Location
    Canada
    Posts
    182

    Re: DataGrid

    Did you try DataGrid.Rebind or DataGrid.Refresh after rs.Requery? I didn't test yet, just an idea comes in my mind.

    Regards,

    Michi

  5. #5
    Join Date
    Jul 2000
    Location
    Slovenia
    Posts
    77

    Re: DataGrid

    It doesn't work. I've already tried that.
    I tried to set DataGrid.DataMember property to DataGrid.DataMember value. This is the only way to refresh data in DataGrid.

    Thinman


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