当前位置:首页
开发技术指南» 文章正文
    引言:

 ·关于协同的疑惑(多谢赐教)    »显示摘要«
    摘要: 我们知道,在最近的一段时间里,在国内的软件市场里,有一个词出现的频率特别高,那就是:协同,从管理的层面上它很好理解,就是使企业内部有效的合作,以有效的利用资源,但是,作为一个计算机专业的我,更喜欢从技术层面上来看待这个问题,究竟,从技术上我们应该如何定位协同呢? 比如说,oa领域,有很多厂商说自己的oa产品是协同的,从何区分呢?到底协同需要什么样的技术来支持,需要什么样的底层技术以及什么......
    摘要: 如何设置初始选中 <script language="javascript"> var g_selprovince; var g_selcity; var g_selcounty; var provinces=new array( new array("30","1"), new array("31"......


像这样的界面,C#能做出来吗

图片在我的服务器上面  
  图片地址:http://www.27sea.com/question.jpg  
   
  是一个权限管理的界面。  
  选择上面的工作组,即出现下面的权限列表。  
  列表我用DataGrid做,可是无法向里面加选择框。  
  DataTable[""].Rows.add()方法可以增加的参数是对象object[],那么应该什么都可以增加  
  可是显示出来的东西,是调用增加对象的ToString()方法。  
   
  比如:  
  DataTable["xx"].Rows.Add(new   System.window.froms.button("按钮"));  
  在DataGrid里也只显示“System.Windows.Forms.Button,   Text:   铵钮”这两个字,而不是一个按钮  
  很明显是调用了ToString()方法。  
   
  唉,也许刚才门吧。我记录Java里的表格,单无格里可以随便放,可以放图片,可以放下拉列表,当然也可以放选择框什么的。  
   
  高手就指点。

NO.1   作者: wxqq2001

很简单啊.  
   
  web:DataGrid模板列.想放什么就放什么.  
   
  win:  
  you   can   see   this   :   Q   :How   can   I   put   a   combobox   in   a   column   of   a   datagrid?  
   
  http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx#q480q  
 

NO.2   作者: wxqq2001

同一个地方的:  
   
  5.15   How   can   I   put   a   checkbox   in   a   column   of   my   DataGrid?            
   
  You   create   a   custom   DataTableStyle   that   contains   column   styles   for   each   column   you   want   to   display.   You   add   the   column   styles   in   the   order   you   want   them   to   appear.   Here   are   the   steps   to   add   an   string   column,   an   int   column   and   a   bool   check   column   to   a   DataGrid.   You   can   also   download   a   working   project.    
     
  //   code   assumes   you   have   a   DataSet   named   myDataSet,   a   table   named   "EastCoastSales"   and   a   DataGrid   myDataGrid    
     
  //STEP   1:   Create   a   DataTable   style   object   and   set   properties   if   required.    
     
            DataGridTableStyle   ts1   =   new   DataGridTableStyle();    
     
   
     
            //specify   the   table   from   dataset   (required   step)    
     
            ts1.MappingName   =   "EastCoastSales";    
     
               
     
            //   Set   other   properties   (optional   step)    
     
            ts1.AlternatingBackColor   =   Color.LightBlue;    
     
   
     
  //STEP   2:   Create   a   string   column   and   add   it   to   the   tablestyle    
     
            DataGridColumnStyle   TextCol   =   new   DataGridTextBoxColumn();    
     
            TextCol.MappingName   =   "custName";   //from   dataset   table    
     
            TextCol.HeaderText   =   "Customer   Name";    
     
            TextCol.Width   =   250;    
     
            ts1.GridColumnStyles.Add(TextCol);    
     
   
     
  //STEP   3:   Create   an   int   column   style   and   add   it   to   the   tablestyle    
     
            //this   requires   setting   the   format   for   the   column   through   its   property   descriptor    
     
            PropertyDescriptorCollection   pdc   =   this.BindingContext    
     
                        [myDataSet,   "EastCoastSales"].GetItemProperties();    
     
   
     
            //now   created   a   formated   column   using   the   pdc    
     
            DataGridDigitsTextBoxColumn   csIDInt   =    
     
                        new   DataGridDigitsTextBoxColumn(pdc["CustID"],   "i",   true);    
     
            csIDInt.MappingName   =   "CustID";    
     
            csIDInt.HeaderText   =   "CustID";    
     
            csIDInt.Width   =   100;    
     
            ts1.GridColumnStyles.Add(csIDInt);    
     
   
     
  //STEP   4:   Add   the   checkbox    
     
            DataGridColumnStyle   boolCol   =   new   DataGridBoolColumn();    
     
            boolCol.MappingName   =   "Current";    
     
            boolCol.HeaderText   =   "Info   Current";    
     
   
     
  //uncomment   this   line   to   get   a   two-state   checkbox    
     
            //((DataGridBoolColumn)boolCol).AllowNull   =   false;    
     
   
     
            boolCol.Width   =   150;    
     
            ts1.GridColumnStyles.Add(boolCol);    
     
   
     
  //STEP   5:   Add   the   tablestyle   to   your   datagrids   tablestlye   collection    
     
            myDataGrid.TableStyles.Add(ts1);  
     
 

NO.3   作者: czy0203

这个可以用图片变换来实现啦(JS)

NO.4   作者: fengliudai

datagrid一定可以实现,不过要js  
  或者干脆就用treeview不是更方便

NO.5   作者: glhx

兄弟,用摸版列就可以咯:)

NO.6   作者: pantian

搞得这么复杂干嘛  
   
  1、用第三方控件,马上搞定。  
   
  2、用vs.net   2005中自带的DataGridView控件,也马上搞定。

NO.7   作者: connection999

eform自定义表单平台是一个在IE浏览器中可视化的设计软件界面的工具。无论是输入界面还是报表界面,无论是简单的输入查询还是复杂的逻辑处理。都可以由eform设计出来。    
     
            eform自定义表单平台适用于网上OA系统的自定义表单模块,工作流系统的自定义表单模块,信息管理系统方面的软件开发项目等等。    
   
  方成eform自定义表单平台,纯BS结构.100%开放源码.可以在   http://218.30.103.110:8080/eform/index.html   在线试用.  
 


    摘要: 读数据库记录,取得记录值 学生名,学号,准考证号,班级,考试科目,考试时间,考场 要求生成以下格式准考证 准考证号 学生名 学号 班级 考试科目 考试时间 考场 科目1 时间1 考场号 科目2 时间2 考场号 每准考证生成两份,作为一张纸打印 现在要实现功能 输入起始准考证号,结束准考证号 系统可以自动打印相应准考证 输入特定准考证号,系统可以打印特定准考证 如果是打印单张,我想可以调......
» 本期热门文章:

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