This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / 有没有谁清楚如何在.NET 1.1 SDK Windows DataGrid 控件 Colum Header 添加 Check Box?
-bobo123(以马内利);
2008-3-4
(#4307293@0)
-
Set a checkbox to proper position, then use datagrid.Controls.Add(ckObj)
-deep_blue(BLUE);
2008-3-4
(#4308009@0)
-
Not so easy. Cloumn header can be scrolled dynamically.
-tjhong(我检讨);
2008-3-4
(#4308121@0)
-
I know. It's only workaroud. But in FW 1.1, datagrid has no other way to perform the function.
-deep_blue(BLUE);
2008-3-4
(#4308167@0)
-
理论上可以,不过困难重重,比如COLUMN宽度的变化,COLUMN显示一半如何处理,及滚动/鼠标拖放时同步等等。
-tjhong(我检讨);
2008-3-4
(#4308186@0)
-
Not so difficulty as you thoughtIf you apply DataGridTableStyle and DataGridTextBoxColumn (and other DataGrid Column). Then in DataGridTextBoxColumn_WidthChanged event you can reset checkbox
-deep_blue(BLUE);
2008-3-4
{158}
(#4308199@0)
-
还有一个SCROLLBAR引起的位置变化的问题,可没有直接用DataGrid.Scroll Event 那样简单。可能是个BUG。
-tjhong(我检讨);
2008-3-4
(#4308376@0)
-
升级到 .NET 2.0吧,用DataGridView可以。
-tjhong(我检讨);
2008-3-4
(#4308169@0)
-
.net 3.5都出来了,向LD要求升级vs2008.
-mfcguy(portrait shooter);
2008-3-6
(#4312827@0)
-
自己写一个Grid Control吧,不是很难,可以加进去很多自己需要的功能。
-guestagain(guest again);
2008-3-7
(#4315127@0)