Datagrid Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gauravgniit
    New Member
    • Sep 2008
    • 2

    Datagrid Problem

    I've a datagrid. But i've a problem. When the header of this datagrid does clicked then all the fields are shorted, but not in the correspondance row. After clicking on header, when we open data, this is not according to that row which we clicked.

    Please help me.
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    Yikes, this is some sort of an IQ test question, and I'm afraid I've failed. :(

    Comment

    • missinglinq
      Recognized Expert Specialist
      • Nov 2006
      • 3533

      #3
      This thread doesn't belong in the Cafe/Lounge section but rather in the appropriate technical forum. What language/app are we speaking of here? We need to know so that we can move the thread.

      Welcome to Bytes!

      Linq ;0)>

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        I think it belongs in .NET

        Comment

        • joedeene
          Contributor
          • Jul 2008
          • 579

          #5
          Originally posted by drhowarddrfine
          I think it belongs in .NET
          I think the same. Has anyone hit the report button? It's not like a MOD can't re-move it after it's been moved to the .NET Forum.

          joedeene

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #6
            --Moved to .NET

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              You need to store the ID of your data in a column (which you set to Visible=False).
              You will then be able to figure out which data corresponds with the row selected after the DataGridView, GridView, or DataGrid is sorted.


              -Frinny

              Comment

              Working...