Results 1 to 2 of 2

Thread: How can I view the data in textboxes related to the MSHFlexGrid row that I clicked on

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2007
    Posts
    788

    How can I view the data in textboxes related to the MSHFlexGrid row that I clicked on

    Dear Friends,

    How can I view the data in textboxes related to the MSHFlexGrid row that I clicked on?

    Using MS Access as backend and have 10 textboxes. Whatever the row I click on the MSHFlexGrid it should show tha related data in those textboxes.

    Thanks.

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: How can I view the data in textboxes related to the MSHFlexGrid row that I clicke

    You can try it like this.
    Code:
    Private Sub MSHFlexGrid1_SelChange()
        text1.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.row, 0)
        text2.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.row, 1)
        text3.Text = MSHFlexGrid1.TextMatrix(MSHFlexGrid1.row, 2)
        '...
    End Sub
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

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