Hello, anyone have found out how to select row in gridview in code?
My problem is that on select command i populate another gridview based on first gridviews datakeyname's value and i highlight the selected row. Ok, no problems there, but when i change page and come back i need to highlight it again.
I have tried on RowDataBound - event to catch the row im searching but problem is that i cant compare values because seems that e.Row.Cells(x). Text - command doesnt give results if cell is readonly/not visible. So question is: is there any ways on Row dataBound to get hidden fields values or any ideas how to go around the problem?
My problem is that on select command i populate another gridview based on first gridviews datakeyname's value and i highlight the selected row. Ok, no problems there, but when i change page and come back i need to highlight it again.
I have tried on RowDataBound - event to catch the row im searching but problem is that i cant compare values because seems that e.Row.Cells(x). Text - command doesnt give results if cell is readonly/not visible. So question is: is there any ways on Row dataBound to get hidden fields values or any ideas how to go around the problem?
Comment