从数据库查出数据附到DataGrid后,我要把DataGrid输出到Excel,我怎么计算出DataGrid有多少行多少列啊?用DataGrid的哪个属性?