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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Data binding and form

Data binding and form

Scheduled Pinned Locked Moved C#
wpfwcfquestion
3 Posts 3 Posters 1 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.
  • M Offline
    M Offline
    muharrem
    wrote on last edited by
    #1

    I have two questions 1.I have a 2 diffrent forms. From one form to another how can switch? let say I have button control to go for it. 2.I have a Datatable and want show each row data on a different label control. So each row shoul be displayed on o different group of label controls. Can I bind in this way, how? Currently I am reading each row data and displaying on label controls. Thanks, Muharrem

    N E 2 Replies Last reply
    0
    • M muharrem

      I have two questions 1.I have a 2 diffrent forms. From one form to another how can switch? let say I have button control to go for it. 2.I have a Datatable and want show each row data on a different label control. So each row shoul be displayed on o different group of label controls. Can I bind in this way, how? Currently I am reading each row data and displaying on label controls. Thanks, Muharrem

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      1 - Just show/hide it. 2 - One label for one row ? iterate through each row, create Label instance and add to the form.

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

      1 Reply Last reply
      0
      • M muharrem

        I have two questions 1.I have a 2 diffrent forms. From one form to another how can switch? let say I have button control to go for it. 2.I have a Datatable and want show each row data on a different label control. So each row shoul be displayed on o different group of label controls. Can I bind in this way, how? Currently I am reading each row data and displaying on label controls. Thanks, Muharrem

        E Offline
        E Offline
        Elroy Dsilva
        wrote on last edited by
        #3

        1.) Use the Form.Show() and Form.Hide() methods. 2.) One thing you can do with your label instances is to organise them into a collection such as a list as List<Label>. Write some method that would retrieve the data from the database and fill the Labels' text. Do this on a timer tick if you need your form to reflect the changes done to your database dynamically.

        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