数据网格+选择按钮 [英] datagrid + select button

查看:98
本文介绍了数据网格+选择按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我在VB.net上创建的网页中有一个问题,当我使用datagrid时,当用户从要显示的gridview的生成的选择按钮中选择一个名称或一行时,会在其中显示我想要的员工姓名另一个网格视图,其中基于EmployeeUsername的希望来自另一个表的数据是从第一个表中获取的,所以plz谁能帮助我,如果有任何不清楚的问题请问我,我会尽快答复.

谢谢Advanced

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

推荐答案

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


这篇关于数据网格+选择按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆