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. DataGrid..Assign Runtime Values?

DataGrid..Assign Runtime Values?

Scheduled Pinned Locked Moved C#
question
2 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.
  • I Offline
    I Offline
    innocent73
    wrote on last edited by
    #1

    Hi Folks, I have 3 datagrids on a same webform. I want to assign a value to 3rd datagrid's specific cell on DataGrid2's SelectedIndexChanged event. How can I do this? Is it possible to do this on Runtime? private void DataGrid2_SelectedIndxChanged(object sender, System.EventArgs e) { //Assign a specific value to DataGrid3 } Thanks in advance and King Regards

    M 1 Reply Last reply
    0
    • I innocent73

      Hi Folks, I have 3 datagrids on a same webform. I want to assign a value to 3rd datagrid's specific cell on DataGrid2's SelectedIndexChanged event. How can I do this? Is it possible to do this on Runtime? private void DataGrid2_SelectedIndxChanged(object sender, System.EventArgs e) { //Assign a specific value to DataGrid3 } Thanks in advance and King Regards

      M Offline
      M Offline
      Mairaaj Khan
      wrote on last edited by
      #2

      i'm not sure about it for datagrid because am using datagridview. but any way try this: datagrid.Rows[2].Cell[1].Value= "any value"; Best of Luck. _____________________________ Success is not something to wait for, its something to work for.

      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