Datagrid复选框列 [英] Datagrid Checkbox Column
本文介绍了Datagrid复选框列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试(不成功)将复选框列添加到我的数据网格
i基本上有一个数据网格从数据集中填充
Me.DataGrid1.DataSource = ds.Tables(0)
datagrid然后有5列但是我需要添加第6列
这将是是我的复选框专栏 - 任何帮助或指针这个
都会很棒
谢谢
Mike
im trying (unsucessfully) to add a checkbox column to my datagrid
i basically have a datagrid that im populating from a dataset
Me.DataGrid1.DataSource = ds.Tables(0)
the datagrid then has 5 columns in it but i need to add a sixth column
which will be my checkbox column - any help or pointers with this
would be great
Thanks
Mike
推荐答案
您需要将一个TableStyle添加到网格中,包括您想要的列。
创建添加到的最后一列风格a DataGridCheckBoxColumn
/ Lars
" Mike Fellows" < MI *************** @ equityhouse.co.uk> skrev i meddelandet
新闻:Qp ************ @ newsfe1-gui.server.ntli.net ...
You need to add a TableStyle to the Grid, including the Columns you want.
Make the last Column you add to the style a DataGridCheckBoxColumn
/Lars
"Mike Fellows" <mi***************@equityhouse.co.uk> skrev i meddelandet
news:Qp************@newsfe1-gui.server.ntli.net...
我正在尝试(不成功地)将复选框列添加到我的数据网格
我基本上有一个数据网格,从数据集中填充
Me.DataGrid1.DataSource = ds.Tables(0)<数据网格然后有5列,但我需要添加第六列
这将是我的复选框列 - 任何帮助或指针与此
将是伟大的
谢谢
Mike
im trying (unsucessfully) to add a checkbox column to my datagrid
i basically have a datagrid that im populating from a dataset
Me.DataGrid1.DataSource = ds.Tables(0)
the datagrid then has 5 columns in it but i need to add a sixth column
which will be my checkbox column - any help or pointers with this
would be great
Thanks
Mike
http://www.knowdotnet.com/articles/kdngrid.html
试试这个
" Mike Fellows" < MI *************** @ equityhouse.co.uk>在消息中写道
新闻:Qp ************ @ newsfe1-gui.server.ntli.net ...
http://www.knowdotnet.com/articles/kdngrid.html
try this
"Mike Fellows" <mi***************@equityhouse.co.uk> wrote in message
news:Qp************@newsfe1-gui.server.ntli.net...
我正在尝试(不成功地)将复选框列添加到我的数据网格
我基本上有一个数据网格,从数据集中填充
Me.DataGrid1.DataSource = ds.Tables(0)<数据网格然后有5列,但我需要添加第六列
这将是我的复选框列 - 任何帮助或指针与此
将是伟大的
谢谢
迈克
im trying (unsucessfully) to add a checkbox column to my datagrid
i basically have a datagrid that im populating from a dataset
Me.DataGrid1.DataSource = ds.Tables(0)
the datagrid then has 5 columns in it but i need to add a sixth column
which will be my checkbox column - any help or pointers with this
would be great
Thanks
Mike
可悲的是,对我来说根本没有意义
无论如何,谢谢
Mike
" Ali BAKDUR" <人******* @ hotmail.com>在消息中写道
news:OD ************** @ TK2MSFTNGP12.phx.gbl ...
Sadly that made no sense to me at all
Thanks anyway
Mike
"Ali BAKDUR" <al*******@hotmail.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
http://www.knowdotnet.com/articles/kdngrid.html
试试这个
Mike Fellows < MI *************** @ equityhouse.co.uk>在消息中写道
新闻:Qp ************ @ newsfe1-gui.server.ntli.net ...
http://www.knowdotnet.com/articles/kdngrid.html
try this
"Mike Fellows" <mi***************@equityhouse.co.uk> wrote in message
news:Qp************@newsfe1-gui.server.ntli.net...
我正在尝试(不成功)添加我的数据网格的复选框列
我基本上有一个数据网格,它从数据集中填充
G.Tables(0)
<数据网格然后有5列,但我需要添加第六列
这将是我的复选框列 - 任何帮助或指针与此
将是伟大的
>谢谢
迈克
im trying (unsucessfully) to add a checkbox column to my datagrid
i basically have a datagrid that im populating from a dataset
Me.DataGrid1.DataSource = ds.Tables(0)
the datagrid then has 5 columns in it but i need to add a sixth column
which will be my checkbox column - any help or pointers with this
would be great
Thanks
Mike
这篇关于Datagrid复选框列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文