I need Gridview Controls Assign Value.

Posted by Jayakumars under Regular Expressions on 6/17/2011 | Points: 10 | Views : 2505 | Status : [Member] [MVP] | Replies : 4
hi

I have Design Gridview with Textbox controls binded good after when i click
button click event i need find all textbox in gridview get value 1000Rs how will do this

Mark as Answer if its helpful to you


Responses

Posted by: Robin_ahuja2008 on: 6/17/2011 [Member] Starter | Points: 25

Up
0
Down
Use the RowDataBound and RowCommand event of gridview

Regards,
Robin Ahuja

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

Posted by: Nietajay on: 6/17/2011 [Member] Starter | Points: 25

Up
0
Down
h

http://www.questionsofinterview.com

Ajay Kumar
Web developer

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

Posted by: Ndebata on: 6/20/2011 [Member] Starter | Points: 25

Up
0
Down
There are many ways you can achieve this.
1. Try to loop through all rows ( If you all your text boxes should be updated)
Find the textbox control in that row, change the value.

2. If you are binding a collection to the datagrid, then change the value of that property which is binded to that textbox,
and Bind the gridview.

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

Login to post response