![VB.NET源码-156个实用实例哦……](http://www.zhzx123.com/VB.NET_03.gif)
求救
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()
__________________________________________________________________________