Click here to Skip to main content
15,888,293 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello

I have a Prob in my webpage created on VB.net I'm using a datagrid where the name of the employee is shown i want when the user select a name or a row from the generated select button of the gridview i want to show another grid view where the data from another table is shown based on the EmployeeUsername wish is taken from the first table also so plz can anyone help me and if there is anything not clear ask me i will reply fast.

Thank you in advanced
Posted
Updated 23-Apr-12 6:18am
v2
Comments
Sandeep Mewara 23-Apr-12 12:20pm    
What is the issue here?

On selection of the employee you need to get more data related to that employee and update another grid. Did you try?
kroz18 23-Apr-12 15:49pm    
i want to select a raw from the gridview1 when this row is selected i want to take the EUsername as an argument to draw the second gridview2 so when another raw is selected the gridview2 change to chow the data of another table where Eusername is equal

1 solution

VB
Protected Sub selecteduser(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged

       Dim x As String = GridView1.SelectedRow.Cells(3).Text

       UserT.Text = x


   End Sub
 
Share this answer
 

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

  Print Answers RSS


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