how to get the value from gridview into input box?

Posted by Raghuldrag under C# on 5/27/2013 | Points: 10 | Views : 1279 | Status : [Member] | Replies : 1
Hai Friends,

I m creating one application input fields are,

DEPARTURE DATE:(TEXT)==>(GRIDVIEW VALUE LL BE APPEAR IN EDIT MODE)

FROM PLACE:(TEXT)==>(GRIDVIEW VALUE LL BE APPEAR IN EDIT MODE)

TO PLACE:(TEXT)==>(GRIDVIEW VALUE LL BE APPEAR IN EDIT MODE)

ADD
GRIDVIEW TABLE
DEPARTURE DATE FROM PLACE TO PLACE MODES
01-MAY-13 CHENNAI BANGALORE EDIT/DELETE
02-MAY-13 BANGALORE MYSORE EDIT/DELETE

IF I CHOOSE THE EDIT BUTTON IN GRIDVIEW THE ENTIRE VALUE LL BE MOVE ON INPUT FILEDS.

HOW TO MAKE A CODE?




Responses

Posted by: Jaingauravom1 on: 5/27/2013 [Member] Starter | Points: 25

Up
0
Down
textbox t1,t2,t3;
t1=gv.rows[0].cells[0].control[0];
t2=gv.rows[0].cells[1].control[0];
t3=gv.rows[0].cells[2].control[0];


string dt=t1.text;
string fromplace=t2.text;
string toplace=t3.text;

Raghuldrag, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response