Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
i have a gridview,
when i insert the data into table dept(100,1,'IT')and when fetch the data from two tables emp and dept the records look like below grid.

EMpNo DeptNo DeptName
Harshal 1 IT

My problem that when i click on a grid view all records shows in respected text boxes
but issue is i got all data except empno here i get as Name of employee instead of name i want to Empno. pl help to do this
Posted
Updated 18-Oct-12 1:06am
v2
Comments
manak chand 18-Oct-12 6:54am    
please show me the select query

Take a HiddenField in a TemplateField and Bind Empno and while selecting the row find HiddedField control and its value and do what you want from that value;

Thanks
 
Share this answer
 
either check the select query
or
check the datafield in gridview.
 
Share this answer
 

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