Setting Grid values into Text Box
-
I want to set Data from a row in a DataGrid into independent text boxes. I mean each column of the Grid into respective Text Boxes, based on selected row. This is to enable me edit such row.
-
I want to set Data from a row in a DataGrid into independent text boxes. I mean each column of the Grid into respective Text Boxes, based on selected row. This is to enable me edit such row.
you just need to code the logic in the select command of grid view..... mak sure to assign field for datakeyfield property of grid flow will be like :-> 1. get the value of selectedkey field (data key field) 2. fetch data from cache/database for that particular field value 3. set the value to the appropriate text boxes. [you can even read the value from grid columns if u don't want to fetch data from database.. use findcontrol("name_of_the_label") or cells[0].controls[0].toString();] cheers !
Ashish Sehajpal