获取datagrid中有多少行

dg.VisibleRowCount

不过这个方法包含了标题那一行,也就说

如果dg中没数据

也会返回1
posted @ 2006-07-15 11:47  小y  阅读(708)  评论(1编辑  收藏  举报