CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2001
    Posts
    26

    MSHFlexGrid recordset selection

    I created a ADO and linked MSHFlexGrid boject to that ADO. When I select any record in the grid, how to find which recordset in that ADO object is selcted?
    If I use
    ADO_object.Recordset.Fields(0).Value

    I always get first recordset's value

    Pl help.


  2. #2
    Join Date
    Mar 2001
    Location
    Australia
    Posts
    146

    Re: MSHFlexGrid recordset selection

    You could try:

    MSHFlexgrid.Recordset.Fields(0).Value

    Don't know if that will work, but it's worth a try


  3. #3
    Join Date
    Mar 2001
    Location
    Australia
    Posts
    146

    Re: MSHFlexGrid recordset selection

    If you aren't doing sorting on the MSHFlexgrid, the following might work:



    ADO_Object.Recordset.AbsolutePosition = MSHFlexGrid.Row





    That should set the location in the record set to the current row of the flex grid.

    Hope this helps,

    Nathan Liebke



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