Getting cell values for selected rows in server side
-
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
-
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
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
-
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