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. Datagridview

Datagridview

Scheduled Pinned Locked Moved C#
cssquestion
3 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.
  • G Offline
    G Offline
    GunaChinna
    wrote on last edited by
    #1

    i need an event in datagridview that will be called for every row that is binded to the grid in windows application. is there an event?

    R I 2 Replies Last reply
    0
    • G GunaChinna

      i need an event in datagridview that will be called for every row that is binded to the grid in windows application. is there an event?

      R Offline
      R Offline
      Riaan Booyzen
      wrote on last edited by
      #2

      Why do you need the event? there is always an option to access the data that is binded to the datagrid. If you populate your grid with a dataset try foreach (System.Data.DataRow dr in dsModApp.Tables[0].Rows) { myList.Add(dr.ItemArray[0].ToString()); } here i retireve the first column that is my select statement and thus position [0] in the dataset that is returned. Then i add the information to an arraylist for other purposes. hope it helps Riaan Booyzen

      1 Reply Last reply
      0
      • G GunaChinna

        i need an event in datagridview that will be called for every row that is binded to the grid in windows application. is there an event?

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

        Hi, You can use the RowsAdded event on the grid. It is fired when you add a row to the grid... It includes when you bind a dataset, then it is fired for every row.

        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