将用户控件添加到DataGridView中的单元格 [英] add user control to a cell in a DataGridView

查看:322
本文介绍了将用户控件添加到DataGridView中的单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个带有一个文本框和一个按钮控件的用户控件。现在我想在VB.Net的datagridview控件中添加这个控件。这些用户控件放在datagridview中,一行中有一个用户控件。



如果我有一个循环通过十个用户控件而不是datagridview中的十行创建有用户控制它。



我不知道如何解决它。请帮帮我。

I have created a user control with one textbox and one button control. Now I want to add this control in my datagridview control in VB.Net. These user controls are placed in the datagridview with order one user control in one row.

If I have a loop through ten user controls than ten rows in datagridview create having user control in it.

I don''t know how to solved it. Please help me.

推荐答案

通过以下链接: -

http://msdn.microsoft.com/en-us/library/7tas5c80.aspx [ ^ ]
Go through with below link:-
http://msdn.microsoft.com/en-us/library/7tas5c80.aspx[^]


这篇关于将用户控件添加到DataGridView中的单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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