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. Events in DataGrid

Events in DataGrid

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

    Hi, my problem is, that if I want to change the row by pressing the return key, I found no event which fired. I have added the DataGridTextBoxColumn to my DataGrid and so I have the possibility to add events on several columns. Does anybody know a solution? Sorry, if my English was not perfect, I am from Germany. Thanx Steffen

    K 1 Reply Last reply
    0
    • A Anonymous

      Hi, my problem is, that if I want to change the row by pressing the return key, I found no event which fired. I have added the DataGridTextBoxColumn to my DataGrid and so I have the possibility to add events on several columns. Does anybody know a solution? Sorry, if my English was not perfect, I am from Germany. Thanx Steffen

      K Offline
      K Offline
      KSEI
      wrote on last edited by
      #2

      Because your problem is not very clear to me, I assume that your datagrid's data source is from a dataset. You can try set an event handler for one of these dataset events. 1. RowChanged 2. RowChanging 3. ColumnChanged 4. ColumnChanging For the changing event, it occurs when data is changing. You can cancel or accept the changes in this event. For the changed event, it occurs when data has been changed successfully.

      A 1 Reply Last reply
      0
      • K KSEI

        Because your problem is not very clear to me, I assume that your datagrid's data source is from a dataset. You can try set an event handler for one of these dataset events. 1. RowChanged 2. RowChanging 3. ColumnChanged 4. ColumnChanging For the changing event, it occurs when data is changing. You can cancel or accept the changes in this event. For the changed event, it occurs when data has been changed successfully.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        I mean with change the row not to change the value in the special cell. I mean that the cursor is after pressing the return key in the row below the row before. Example: Rows: 0 1*cursor* -> then pressing return --> event should fire 2 --> 0 1 2*cursor* (one position higher in the row collection) I hope my English was understandable.

        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