编码datagridview [英] coding for datagridview

查看:60
本文介绍了编码datagridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在datagridview中为每一行添加复选框,我想要的是通过选中复选框用户可以删除整行,现在问题是当我尝试添加数据源时,其中的列显示在dgv中,使用编码我添加的列显示。



是否可能显示数据库中的列,我可以添加1列复选框以删除它? br $> b $ b

请建议。

解决方案

是的 - 看看这篇文章... 如何将自定义复选框列添加到Windows窗体中的DataGridView [ ^ ]

I am trying to add checkbox in datagridview for every row , what i want is by selecting the checkbox user can delete the entire row , now the question is when i try to add the datasource the columns in it are displayed in dgv , using coding the columns i add that are displayed.

is it possible that the columns in database are displayed and i can add 1 column of check box for deleting it ?

Kindly suggest.

解决方案

Yes - see this article ... How to Add Custom Checkbox Column to DataGridView in Windows Forms[^]


这篇关于编码datagridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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