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. C#
  4. dataMemember reference row in table

dataMemember reference row in table

Scheduled Pinned Locked Moved C#
wpfwcfhelp
6 Posts 3 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.
  • I Offline
    I Offline
    irishdunn
    wrote on last edited by
    #1

    I am trying to bind a control to this dataset and have been successful thus far, problem is I want to be able to specify the row in the table the control is binding to. Apologize for any ineptitudes in advanced, very new to this. sample: newTBox.DataBindings.Add("Text", _Data, _tableName + "." + field, false); I want to do something like this: newTBox.DataBindings.Add("Text", _Data, _tableName + "[" + _rowNumber + "]" + "." + field, false); right now it is always binding to the 0th row in my table. Thanks in advance

    D I 2 Replies Last reply
    0
    • I irishdunn

      I am trying to bind a control to this dataset and have been successful thus far, problem is I want to be able to specify the row in the table the control is binding to. Apologize for any ineptitudes in advanced, very new to this. sample: newTBox.DataBindings.Add("Text", _Data, _tableName + "." + field, false); I want to do something like this: newTBox.DataBindings.Add("Text", _Data, _tableName + "[" + _rowNumber + "]" + "." + field, false); right now it is always binding to the 0th row in my table. Thanks in advance

      D Offline
      D Offline
      DoomedOne
      wrote on last edited by
      #2

      Can U use a filtered select query or view instead of the table as data source?

      I 1 Reply Last reply
      0
      • D DoomedOne

        Can U use a filtered select query or view instead of the table as data source?

        I Offline
        I Offline
        irishdunn
        wrote on last edited by
        #3

        No I am working with a supplied dataset, so I will have to navigate through it properly. I am trying now to get something like this to work: ("Checked", Data.Tables[_tableName].Rows[_rowIndex], field, false); don't think thats gonna hack it though help!:confused:

        1 Reply Last reply
        0
        • I irishdunn

          I am trying to bind a control to this dataset and have been successful thus far, problem is I want to be able to specify the row in the table the control is binding to. Apologize for any ineptitudes in advanced, very new to this. sample: newTBox.DataBindings.Add("Text", _Data, _tableName + "." + field, false); I want to do something like this: newTBox.DataBindings.Add("Text", _Data, _tableName + "[" + _rowNumber + "]" + "." + field, false); right now it is always binding to the 0th row in my table. Thanks in advance

          I Offline
          I Offline
          irishdunn
          wrote on last edited by
          #4

          Still cant figure this out here is my poopy code: newTBox.DataBindings.Add("Text", _Data.Tables[_tableName].Rows[_rowIndex], _tableName + "." + field, false);

          S 1 Reply Last reply
          0
          • I irishdunn

            Still cant figure this out here is my poopy code: newTBox.DataBindings.Add("Text", _Data.Tables[_tableName].Rows[_rowIndex], _tableName + "." + field, false);

            S Offline
            S Offline
            SimulationofSai
            wrote on last edited by
            #5

            Use a DataView to filter your original dataset and bind the dataview to your controls. SG

            I 1 Reply Last reply
            0
            • S SimulationofSai

              Use a DataView to filter your original dataset and bind the dataview to your controls. SG

              I Offline
              I Offline
              irishdunn
              wrote on last edited by
              #6

              How do i use the rowfilter parameter in the dataview. I have an integer representation of the row I need but this requires some sort of name value pair. Is there a way i can directly use my integer?

              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