Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. DataGridTextColumn Content?

DataGridTextColumn Content?

Scheduled Pinned Locked Moved WPF
databasehelpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sundeep Ganiga
    wrote on last edited by
    #1

    Dear all, I have datagrid control being data bind from database using webservice in which there are two columns called ColA and ColB. ColA is HyperlinkButton(DataGridTemplateColumn) and ColB is DataGridTextColumn. There is Click event for HyperlinkButton(ColA),in which I am trying get the content of both Column values(ColA and ColB).It is able to read ColA but not ColB from Code.Can anyone help me regarding this. Regards, Sundeep G

    M 1 Reply Last reply
    0
    • S Sundeep Ganiga

      Dear all, I have datagrid control being data bind from database using webservice in which there are two columns called ColA and ColB. ColA is HyperlinkButton(DataGridTemplateColumn) and ColB is DataGridTextColumn. There is Click event for HyperlinkButton(ColA),in which I am trying get the content of both Column values(ColA and ColB).It is able to read ColA but not ColB from Code.Can anyone help me regarding this. Regards, Sundeep G

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Sundeep Ganiga wrote:

      .It is able to read ColA but not ColB from Code.

      How are you doing this?

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      S 1 Reply Last reply
      0
      • M Mark Salsbery

        Sundeep Ganiga wrote:

        .It is able to read ColA but not ColB from Code.

        How are you doing this?

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        S Offline
        S Offline
        Sundeep Ganiga
        wrote on last edited by
        #3

        In hyperlink click event,I can get that ColA value

        Private Sub hllnkbtn_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
        txtColA.Text = CType(e.OriginalSource, HyperlinkButton).Content
        'txtColB.Text = CType(e.OriginalSource, DatagridTextColumn).Content 'This cannot be done here
        End Sub

        Another Question,If You know the solution please respond.. http://www.codeproject.com/Messages/3268368/How-to-find-Duplicate-record-using-silverlight-web.aspx

        M 1 Reply Last reply
        0
        • S Sundeep Ganiga

          In hyperlink click event,I can get that ColA value

          Private Sub hllnkbtn_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
          txtColA.Text = CType(e.OriginalSource, HyperlinkButton).Content
          'txtColB.Text = CType(e.OriginalSource, DatagridTextColumn).Content 'This cannot be done here
          End Sub

          Another Question,If You know the solution please respond.. http://www.codeproject.com/Messages/3268368/How-to-find-Duplicate-record-using-silverlight-web.aspx

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Can you use the Datagrid.SelectItem property to get the data for the entire row?

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups