记录在DevExpress GridControl中单击 [英] Record Click in DevExpress GridControl

查看:93
本文介绍了记录在DevExpress GridControl中单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VB.NET中使用Visual Studio 2012创建了一个项目...我已经使用DataGridView创建Form1并连接到我的DataSet ...并再创建一个具有相同DataSet的Form2 View ...

我在DataGridView中添加了一个按钮。当我点击该按钮时,它会在Form2中显示相同的详细视图记录......



代码如下所示:



Private Sub StudentTableDataGridView_CellContentClick(sender As Object,e As DataGridViewCellEventArgs)处理StudentTableDataGridView.CellContentClick

如果StudentTableDataGridView.Columns(e .ColumnIndex).Name =Detail然后

Dim m As String

m = StudentTableDataGridView.Rows(e.RowIndex).Cells(DataGridViewTextBoxColumn1)。Value

Dim xx As New Form2

xx.AdminnoTextEdit.Text = m

xx.Show()

结束如果

结束次级



我想在DEVEXPRESS GRIDCONTROL做同样的事情....请帮助.....如果你给C ODE或SAMPLE ......会更好....

请帮助.....

I have create one project using Visual Studio 2012 in VB.NET... I have create Form1 with DataGridView and Connect to my DataSet... And Create one more Form2 with same DataSet in detail View...
I have add one button in DataGridView.. When I click on that button it shows me same record in Form2 in detail view...

Code is given below:

Private Sub StudentTableDataGridView_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles StudentTableDataGridView.CellContentClick
If StudentTableDataGridView.Columns(e.ColumnIndex).Name = "Detail" Then
Dim m As String
m = StudentTableDataGridView.Rows(e.RowIndex).Cells("DataGridViewTextBoxColumn1").Value
Dim xx As New Form2
xx.AdminnoTextEdit.Text = m
xx.Show()
End If
End Sub

SAME THING I WANT TO DO IN DEVEXPRESS GRIDCONTROL.... PLEASE HELP..... IF YOU GIVE CODE OR SAMPLE... WILL BE BETTER....
PLEASE HELP.....

推荐答案

因为你是一个DevExpress的客户,您可以要求他们快速回复。

检查他们的演示 [ ^ ],文档 [ ^ ]。并在他们的论坛 [ ^ ]
As you're a customer of DevExpress, you could ask them for quick response(s).
Check their Demo[^], documentation[^]. And post your question(with clear & complete details) at their forum[^]


这篇关于记录在DevExpress GridControl中单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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