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. Web Development
  3. ASP.NET
  4. Getting cell values for selected rows in server side

Getting cell values for selected rows in server side

Scheduled Pinned Locked Moved ASP.NET
questioncssdatabasewpfwcf
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.
  • N Offline
    N Offline
    NK7
    wrote on last edited by
    #1

    Hi I have one datagrid i am binding the grid from backend. Data grid has 5 column col1, col2, col3, col4 and col5. I need to select any cell run time and drag only the selected cell into another grid. If I click row[1][3] i have to drag only the cell. Next time i will select row[3][5] in run time. My question is how to find the selected cell value in server side. I tried with selected index. But it will work only if we know the column name for ex row[0][4], but the column selection will change next time. Can any one help me please? regards

    kesavan

    N 1 Reply Last reply
    0
    • N NK7

      Hi I have one datagrid i am binding the grid from backend. Data grid has 5 column col1, col2, col3, col4 and col5. I need to select any cell run time and drag only the selected cell into another grid. If I click row[1][3] i have to drag only the cell. Next time i will select row[3][5] in run time. My question is how to find the selected cell value in server side. I tried with selected index. But it will work only if we know the column name for ex row[0][4], but the column selection will change next time. Can any one help me please? regards

      kesavan

      N Offline
      N Offline
      Nishant Singh
      wrote on last edited by
      #2

      Selected Index will give you the selected row, and for each cell in RowDataBound attach a javascript function which updates a hdnValue on click , Access that hidden value to find row and column combination

      N 1 Reply Last reply
      0
      • N Nishant Singh

        Selected Index will give you the selected row, and for each cell in RowDataBound attach a javascript function which updates a hdnValue on click , Access that hidden value to find row and column combination

        N Offline
        N Offline
        NK7
        wrote on last edited by
        #3

        hi can you explain with example please regards

        kesavan

        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