getting cell index or text
ASP.NET
5
Posts
3
Posters
0
Views
1
Watching
-
-
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.
-
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
-
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
Try this In ItemCommand event -> e.item.cells(1).text 1 is used for 2nd column.
-
Try this In ItemCommand event -> e.item.cells(1).text 1 is used for 2nd column.