
FlexCell是一款美观易用的电子表格控件,包含6种单元格类型和9个编程对象,提供三维图表和单元格,支持剪贴板 *** 作、合并单元格、虚表、打印和打印预览等功能,不需要Excel运行库支持就可以输出为Excel WorkBook。
软件包中附带FlexCell表格设计器,无需任何编程就可以制作出图文并茂的报表和程序界面,还可作为B/S报表工具使用。
1)绑定相关的汇总数据
Dictionary<string, CListItem> dict = GetAgeCondition();
if (dictKeysCount > 0)
{
grid1Cell(startRow++, 1)Text = "年龄段情况:";
foreach (string key in dictKeys)
{
CListItem item = dict[key];
grid1Cell(startRow, 2)Text = key;
grid1Cell(startRow, 3)Text = stringFormat("有{0}人,占比例{1} ", itemText, itemValue);
grid1Cell(startRow, 4)Text = stringFormat("Age:{0}", key);
startRow++;
}
}
2)超链接处理事件代码
在控件上单击Grid的Hyperlink处理事件,然后实现其内部处理代码,如下所示:
private void grid1_HyperLinkClick(object Sender, FlexCellGridHyperLinkClickEventArgs e)
{
FlexCellCell cell = grid1Cell(eRow, 4);
if (cell != null && !stringIsNullOrEmpty(cellText))
{
FrmStatisticDetail dlg = new FrmStatisticDetail();
dlgKeyCondition = cellText;
dlgShowDialog();
}
eURL = "";
eChanged = true;
}
VERSION 500
Object = "{CFA7AFF4-3242-4269-9172-7389D695AE01}#10#0"; "StoneXPocx"
Object = "{D959C709-8613-11D1-9840-002078110E7D}#10#0"; "as97Popupocx"
Object = "{DAAC6951-59A4-4C08-9D6E-FE3919B64861}#10#0"; "FlexCellocx"
Begin VBForm form1
BackColor = &H00FFC0C0&
BorderStyle = 1 'Fixed Single
Caption = "学生信息管理系统"
ClientHeight = 8880
ClientLeft = 45
ClientTop = 315
ClientWidth = 12000
BeginProperty Font
Name = "宋体"
Size = 105
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "Form1frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
Picture = "Form1frx":F84A
ScaleHeight = 8880
ScaleWidth = 12000
StartUpPosition = 1 '
Begin VBFrame Fre1
BackColor = &H00C0C0FF&
BorderStyle = 0 'None
Height = 6165
Left = 150
TabIndex = 5
Top = 2480
Width = 1575
Begin VBFrame Fre2
BackColor = &H00808080&
BorderStyle = 0 'None
Height = 375
Index = 0
Left = 0
TabIndex = 10
Top = 1920
Width = 1575
Begin as97PopupasPopup asPopup1
Height = 855
Left = 240
ToolTipText = "添加记录"
Top = 240
Width = 1095
_ExtentX = 1931
_ExtentY = 1508
CustomPicture = "Form1frx":2F7CC
Caption = "所有学生"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 12582912
BevelWidth = 0
Layout = 3
MouseOverColor = 16777215
ScaleWidth = 73
ScaleMode = 0
ScaleHeight = 57
BackStyle = 0
ObjectToolTipText = "添加记录"
End
Begin as97PopupasPopup asPopup2
Height = 855
Left = 240
ToolTipText = "查看记录"
Top = 1320
Width = 1095
_ExtentX = 1931
_ExtentY = 1508
CustomPicture = "Form1frx":34331
MouseOverPicture= "Form1frx":3907E
Caption = "增加学生"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 12582912
access
可以用FlowLayoutPanel+pictureBox做表格
你说的拖动,可以点击某个picturebox后在另外一个窗口显示该
②中添加和备注信息是否需要用到数据库来保存记录
这个你可以用数据库记录所在的路径和备注信息,也可以用XML文件来存放
以上就是关于d出flexcell表格控件怎么办全部的内容,包括:d出flexcell表格控件怎么办、求份学生信息管理系统 数据库课程设计.、c#如何 在 Winform中 添加图片 并且 允许拖动,删除等动作等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)