如何将复选框添加到datagridview中的每个单元格 [英] how to add checkbox to each cells in datagridview

查看:177
本文介绍了如何将复选框添加到datagridview中的每个单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我正在做学校软件项目.我在sqlserver中用subjetname
创建了一个表 我将在datagridview中显示它.它会像这样

泰米尔语英语

II

现在,我想在每个主题下方添加复选框,以允许老师检查
该复选框以表明他可以选修哪个学科.


我需要像这样的datagridview结构


泰米尔语英语
我选中复选框
II复选框复选框


我不知道如何为每个单元格添加复选框.

如果有人有什么帮助我
提前进行tahank的操作

hi
i am doing school software project. I created a table in sqlserver with subjetname
and i will display it in in the datagridview .and it will lok like this

Class Tamil English
I
II

now i want to add the checkbox below each subject for allowing the teacher to check
that checkbox to indicate which subject he can able to take.


i need a datagridview struture lik this


class Tamil English
I checkbox checkbox
II Checkbox Checkbox


i don''t know how to add checkbox to each cell.

if anyone have any idea help me
tahank''s in advance

推荐答案

尝试
http://www.dotnetspark.com/kb/151-add-checkbox- inside-datagridview-windows.aspx [ ^ ]
http://csharp.net-informations.com/datagridview/csharp-datagridview-checkbox.htm [^ ]
http://www.youtube.com/watch?v=YIwkzu4l3uM [
Try
http://www.dotnetspark.com/kb/151-add-checkbox-inside-datagridview-windows.aspx[^]
http://csharp.net-informations.com/datagridview/csharp-datagridview-checkbox.htm[^]
http://www.youtube.com/watch?v=YIwkzu4l3uM[^]


这篇关于如何将复选框添加到datagridview中的每个单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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