如何在第一个datagridview的单元格上带来另一个datagridview [英] how to bring another datagridview on cell of first datagridview
本文介绍了如何在第一个datagridview的单元格上带来另一个datagridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
推荐先生/s
我正在使用vb.net开发Windows应用程序.
当用户键入单元格时,其中有项目的网格视图,则另一个网格视图应自动出现在此位置..
我尝试了以下代码...但无法正常工作
Respected sir/s
I am developing windows application using vb.net.
in which i have gridview of items when user type into cell then another gridview should be appeared at this location automatically..
i have tried following code...but not working
Dim y As Integer = DGV.CurrentCellAddress.Y 'DGV is first datagridview
Dim x As Integer = DGV.CurrentCellAddress.X
Dim p As New Point(x, y)
DGVItems.Location = Me.PointToScreen(p) 'DGVItems is another datagridview
请帮我...
谢谢您,
please help me...
Thank you,
推荐答案
在单元格中实现gridview确实很困难
您必须创建自定义单元格,列,并且必须在单元格中绘制网格
我建议你一些东西,
不要浪费时间这样做,
为此任务使用 tablelayout面板.
您还可以为此使用 wpf网格
祝您编码愉快!
:)
It''s really difficult to achieve a gridview in cell
you have to create custom cells, columns and have to paint your grid in cell
I suggest you something,
don''t waste time to do so,
use tablelayout panel for this task.
you can also use wpf grid for this
Happy Coding!
:)
这篇关于如何在第一个datagridview的单元格上带来另一个datagridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文