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. Windows Forms
  4. Datagrid & Panel

Datagrid & Panel

Scheduled Pinned Locked Moved Windows Forms
help
2 Posts 2 Posters 2 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.
  • T Offline
    T Offline
    tantoun
    wrote on last edited by
    #1

    Hello how can drag a row from a datagrid and drop it into a panel plz help me regards

    etretyertyery

    R 1 Reply Last reply
    0
    • T tantoun

      Hello how can drag a row from a datagrid and drop it into a panel plz help me regards

      etretyertyery

      R Offline
      R Offline
      Richard Blythe
      wrote on last edited by
      #2

      I've never had a need to write code like that but you can probably do it this way: Set your panel's AllowDrop property to True Trap the OnDrop event for the panel and inside the handler check the SelectedRows property of the datagrid. You would then use that property to display the data any way you chose. Again, I don't know if that example alone will do it bit it will be very close. You might even do a google search on DragDrop operations.

      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