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 index or text

getting cell index or text

Scheduled Pinned Locked Moved ASP.NET
cssdatabase
5 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.
  • 2 Offline
    2 Offline
    2489128
    wrote on last edited by
    #1

    Hi! tere is a data grid. when we clicked on a row of datagrid on client side then we can get its row index by e.item.itemIndex in ItemDataBound event of datagrid. now i want to find cell value or cell index of a particular cell of a item when we clicked.

    _ 1 Reply Last reply
    0
    • 2 2489128

      Hi! tere is a data grid. when we clicked on a row of datagrid on client side then we can get its row index by e.item.itemIndex in ItemDataBound event of datagrid. now i want to find cell value or cell index of a particular cell of a item when we clicked.

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      Nigam Samir wrote:

      now i want to find cell value

      for this: e.Item.Cells

      Nigam Samir wrote:

      or cell index of a particular cell

      for this: e.Item.Cells[0].GetCellIndex

      Best Regards, Apurva Kaushal

      2 1 Reply Last reply
      0
      • _ _AK_

        Nigam Samir wrote:

        now i want to find cell value

        for this: e.Item.Cells

        Nigam Samir wrote:

        or cell index of a particular cell

        for this: e.Item.Cells[0].GetCellIndex

        Best Regards, Apurva Kaushal

        2 Offline
        2 Offline
        2489128
        wrote on last edited by
        #3

        Not working. Suppose that we clicked at cell no 2 on row no 3. then i want to find cell index or value for cell no 2

        P 1 Reply Last reply
        0
        • 2 2489128

          Not working. Suppose that we clicked at cell no 2 on row no 3. then i want to find cell index or value for cell no 2

          P Offline
          P Offline
          P S Pundeer
          wrote on last edited by
          #4

          Try this In ItemCommand event -> e.item.cells(1).text 1 is used for 2nd column.

          2 1 Reply Last reply
          0
          • P P S Pundeer

            Try this In ItemCommand event -> e.item.cells(1).text 1 is used for 2nd column.

            2 Offline
            2 Offline
            2489128
            wrote on last edited by
            #5

            not working! i want when i clicking on second cell then i will get its column index on a particular item

            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