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

 

    摘要: 在线等待,我知道可以用: <location path="validate"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location> 限定需......
    摘要: 谢谢 ......


DataGrid属性问题

DataGrid什么属性可使空的Cell不显示"NULL",而是空白。  
 

NO.1   作者: Acony

没有这样的属性,如果该数据在数据库里是NULL值,那么在DataGrid只会显示NULL,除非你把把该数据替换为空字符串,那么显示的就是空白

NO.2   作者: cfag

在绑定了数据源之后接着写如下代码:(此代码只适应于不包含BoolColumn的DataGrid,因为BoolColumn无NullText属性)  
  Dim   i   as   integer  
  For   i=0   to   DataGrid1.DataSource.columns.count-1  
          Dim   aTextColumn   as   DataGridTextBoxColumn=CType(DataGrid1.TableStyles   (0).GridColumnStyles(i),DataGridTextBoxColumn)  
          aTextColumn.NullText   =   ""  
  Next

NO.3   作者: ymhmax

objTextColumn.NullText   =   ""  
 

NO.4   作者: sanno

objTextColumn.NullText   =   ""  
   
  应该是这样吧~~

NO.5   作者: plswolf

NullText=String.Empty


    摘要: 我用fscanf读入一个文本文件,里面有一些数据,有可能是浮点,也有可能是整数。 我用下面这个语句读入,总是提醒"r6002"这么一个“缺少小数点”的运行错误。 fscanf(fp,"%f %f %f",&temppoint.x,&temppoint.y,&temppoint.z); (其中的temppoint是我定义的,x,......
» 本期热门文章:

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