DotNet中定制自己的表格
来源:互联网 发布:sql注入攻防入门详解 编辑:程序博客网 时间:2024/06/04 20:54
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
1、在表格中增加一个下拉菜单;
2、在表格中增加一个选择菜单;
3、可以自己定制菜单的背景颜色;
在你的Page_Load 事件中加入如下代码:
DropDownList dropDownLst = new DropDownList();
TableRow row = new TableRow();
dropDownLst.Items.Add("Item1");
dropDownLst.Items.Add("Item2");
dropDownLst.Items.Add("Item3");
dropDownLst.Items.Add("Item4");
dropDownLst.Items.Add("Item5");
dropDownLst.BackColor = System.Drawing.Color.Red;
TableCell cell = new TableCell();
cell.Controls.Add(dropDownLst);
row.Cells.Add(cell);
row.BackColor = System.Drawing.Color.Green;
Table1.Rows.Add(row);
CheckBox checkBox1 = new CheckBox();
checkBox1.Checked = true;
checkBox1.BackColor = System.Drawing.Color.Yellow;
TableCell cell2 = new TableCell();
cell2.Controls.Add(checkBox1);
row.Cells.Add(cel
DotNet中定制自己的表格';return true">
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
下列程序达到如下功能:1、在表格中增加一个下拉菜单;
2、在表格中增加一个选择菜单;
3、可以自己定制菜单的背景颜色;
在你的Page_Load 事件中加入如下代码:
DropDownList dropDownLst = new DropDownList();
TableRow row = new TableRow();
dropDownLst.Items.Add("Item1");
dropDownLst.Items.Add("Item2");
dropDownLst.Items.Add("Item3");
dropDownLst.Items.Add("Item4");
dropDownLst.Items.Add("Item5");
dropDownLst.BackColor = System.Drawing.Color.Red;
TableCell cell = new TableCell();
cell.Controls.Add(dropDownLst);
row.Cells.Add(cell);
row.BackColor = System.Drawing.Color.Green;
Table1.Rows.Add(row);
CheckBox checkBox1 = new CheckBox();
checkBox1.Checked = true;
checkBox1.BackColor = System.Drawing.Color.Yellow;
TableCell cell2 = new TableCell();
cell2.Controls.Add(checkBox1);
row.Cells.Add(cel
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- DotNet中定制自己的表格
- [7] Word 定制属于自己的表格样式
- 在VFP中定制自己的工具栏
- U-boot中定制自己的命令
- U-boot中定制自己的命令
- latex中定制自己的快捷键
- Android中定制自己的Camera
- 定制bootstrap的表格
- 定制自己的linux
- 定制自己的DataGridView
- 定制自己的Form
- 定制自己的infoTemplate
- 定制自己的launch
- 定制自己的eversecOS
- 定制自己的ACTION
- 定制自己的控件
- 定制自己的FancyBox
- 定制自己的VIM
- 采用行写方式的聊天程序(之四)
- asp.net优化(二)
- 采用行写方式的聊天程序(之三)
- C#枚举系统安装的所有打印机
- 采用行写方式的聊天程序(之一)
- DotNet中定制自己的表格
- 采用行写方式的聊天程序(之二)
- 用C#实现基于用C#实现基于TCP协议的网络通讯
- pop3邮件收取一例
- 转贴:用ASP.NET结合XML制作广告管理程序
- smtp邮件发送一例
- DataList控件也玩分页 (转自aspcn.com)
- MySQL通用查询程序
- C#排序算法大全