问题描述
我必须形成...
1)DataGrid视图
2)数据输入表格
现在我想访问DataGridview中的总行数...
在第二张表格
我的代码是...
(此代码为第二种格式)
公共静态RecordCount;
RecordCount = int.Parse(Client_Master_Grid.dgClientMaster.RowCount.ToString());
现在的问题是...这将从第一种形式获取数据
但ans仍为0;
现在该怎么办
请帮帮我..
如何在第二种形式上写行数代码....
https://dl.dropbox.com/u/10717574/Project%20All%20Common/OrderProcessAutomation%2826-9%294-31.rar [ ^ ]
https://dl.dropbox.com/u/10717574/Project%20All%20Common/OPO.bak [ ^ ]
I have to Form...
1) DataGrid View
2) Data Enter Form
now I wanna acces the Total no of Row in DataGridview...
on the 2nd form
my code is ...
( this code is on 2nd form )
public static RecordCount;
RecordCount = int.Parse(Client_Master_Grid.dgClientMaster.RowCount.ToString());
now problem is that...this will fetch data from the 1st form
but ans is still 0;
now what to do
plzz help me out..
how to write the rowcount code on 2nd form....
https://dl.dropbox.com/u/10717574/Project%20All%20Common/OrderProcessAutomation%2826-9%294-31.rar[^]
https://dl.dropbox.com/u/10717574/Project%20All%20Common/OPO.bak[^]
推荐答案
这篇关于计算DataGridView中的总行数...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!