Last post Dec 14, 2009 04:08 AM by reven_gr
Dec 12, 2009 12:15 AM|jwaynej|LINK
i created a sample asp.net web application.
i use a gridview,sqldatasource,textbox and a button.
i tried to display the data from the grid to the textbox but i still encounter errors.
i did not use a formview to bind all text box. i simply wanted to display the data in the textbox directly but unfortunately i can't find the solution.
please give me idea or codes to this post.
Dec 12, 2009 06:43 AM|Mikesdotnetting|LINK
Could you give more detail on what you tried and what errors you got? Perhaps show the relevant code?
Dec 14, 2009 04:08 AM|reven_gr|LINK
on code behind (on page load or on gridview selectedIndexChanged) you can use
something like this:
textbox1.text = me.gridview1.selectedRow.cells(0).text