当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 1.简单的DataGrid多表头制做!!!
 

 

 ·c#实现window管道技术    »显示摘要«
    摘要: 之前发了一篇使用window api来实现管道技术的文章,后来改用c#来实现相同的效果,发现c#本身方便的进程线程机制使工作变得简单至极,随手记录一下。 首先,我们可以通过设置process类,获取输出接口,代码如下: process proc = new process(); proc .startinfo.filename = strscript; proc .s......
 ·writingtexttoafile(visualbasic)    »显示摘要«
    摘要: this example writes a string to a text file using the writeline method of the streamwriter class. example dim file as new system.io.streamwriter("c:\test.txt") file.writeline(&quo......


简单的DataGrid多表头制作方法
1.简单的datagrid多表头制做!!!

【程序编程相关:设置DataGrid的单选列

【推荐阅读:用以在记录文件中写入自定义的调试信息(主

可在html中的datagrid的最后绑定列中写 【扩展信息:DirectX93D快速上手6

headertext=”ok</td></tr><td>dd</td></tr>”

看加的页眉总头的多少而写td的多少!然后在代码中写:

private void dgrbasic_itemdatabound(object sender, system.web.ui.webcontrols.datagriditemeventargs e)

{

if(e.item.itemtype==listitemtype.header)

{

//e.item.cells[0].rowspan = 2;

e.item.cells[1].rowspan = 2;

e.item.cells[2].rowspan = 2;

e.item.cells[3].rowspan = 2;

e.item.cells[4].rowspan = 2;

e.item.cells[5].rowspan = 2;


...   下一页
    摘要: #region 声明 //---------------------------------------------------------------------- // // 作者: 李淼(nick.lee) // // asp.net下的前台日历控件源代码(不刷新页面) // 时间:2005-3-15 // boyorgril@msn.com // qq:165030......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE