Click here to Skip to main content
15,912,756 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have the gridview.

I want to fetch the data in gridview textboxes while i click the command button.

I have five columns.

The first four columns i am displaying from table one.

The last column (5th column), i want to fetch data from table2.

The entire action should happen when i click the command button, then only i want to load the data.

How to do this ....?
Posted
Updated 20-Dec-11 23:39pm
v2

1 solution

looks like you have use Textbox column in your gridview. now want to fill that textboxes. if i am right then go through following techinique.

Use RowDataBound event, this event fire for each row binding.
use .FindControl() method to find textbox in each row and fill data accordingly in it.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900