<script type="text/javascript">
</script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
求救
Label2.Text = ds.Tables( TTI_LLJYBG ).Rows(DataGrid1.CurrentRowIndex)( cod_fact ) 这是正常的一句,但如果ds.Tables( TTI_LLJYBG ).Rows(DataGrid1.CurrentRowIndex)( cod_fact )等于空,或是没有数据时,就不显示,那要怎么做呢?
我怎样判断datagrid里有几条数据呢? 那个字段等于空,该怎样判断??
__________________________________________________________________________
ds.Tables( TTI_LLJYBG ).Rows(DataGrid1.CurrentRowIndex).IsDBNull( cod_fact )
__________________________________________________________________________
谢谢! 我试试
__________________________________________________________________________
应该是这个函数IsNull()
__________________________________________________________________________
求救
Label2.Text = ds.Tables( TTI_LLJYBG ).Rows(DataGrid1.CurrentRowIndex)( cod_fact ) 这是正常的一句,但如果ds.Tables( TTI_LLJYBG ).Rows(DataGrid1.CurrentRowIndex)( cod_fact )等于空,或是没有数据时,就不显示,那要怎么做呢?
我怎样判断datagrid里有几条数据呢? 那个字段等于空,该怎样判断??
__________________________________________________________________________
ds.Tables( TTI_LLJYBG ).Rows(DataGrid1.CurrentRowIndex).IsDBNull( cod_fact )
__________________________________________________________________________
谢谢! 我试试
__________________________________________________________________________
应该是这个函数IsNull()
__________________________________________________________________________