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. Visual Basic
  4. bind current row to text boxes(urgent)

bind current row to text boxes(urgent)

Scheduled Pinned Locked Moved Visual Basic
help
2 Posts 1 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
    iramg
    wrote on last edited by
    #1

    hello i want to bind a pirticular row of my table with the textboxes which i have in my form. i am getting that row from the datagrid and that is a current row which is clicked by the user. i have saved that row refernce in a seprate datarow object. now how i will select that pirticular row from my table and display the values of each column in realted textbox Dim xCM As CurrencyManager Dim drw As DataRowView Dim row As DataRow xCM = CType(DataGrid1.BindingContext(DataGrid1.DataSource, DataGrid1.DataMember), CurrencyManager) '= drw = CType(xCM.Current, DataRowView) row = drw.Row Me.ItemCode.DataBindings.Add("Text", ds.Tables(0), "locid") the last line bind the first row but i want to bind a cuurent row which is clicked by the user on the datagrid and want to display its values plz help me as soon as possible

    I 1 Reply Last reply
    0
    • I iramg

      hello i want to bind a pirticular row of my table with the textboxes which i have in my form. i am getting that row from the datagrid and that is a current row which is clicked by the user. i have saved that row refernce in a seprate datarow object. now how i will select that pirticular row from my table and display the values of each column in realted textbox Dim xCM As CurrencyManager Dim drw As DataRowView Dim row As DataRow xCM = CType(DataGrid1.BindingContext(DataGrid1.DataSource, DataGrid1.DataMember), CurrencyManager) '= drw = CType(xCM.Current, DataRowView) row = drw.Row Me.ItemCode.DataBindings.Add("Text", ds.Tables(0), "locid") the last line bind the first row but i want to bind a cuurent row which is clicked by the user on the datagrid and want to display its values plz help me as soon as possible

      I Offline
      I Offline
      iramg
      wrote on last edited by
      #2

      plzzzzzzzzz tell me soon

      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