Pass datatable to function
Hi,
I have function like
C# code
public void ProcessRecords(DataTable agmt_process)
{
//bool processStatus;
foreach (DataRow row in agmt_process.row) .... (For loop is gicing error )
...... process
}
How do I process each row ??? It say Error 2 'System.Data.DataTable' does not contain a definition for 'row'
MaskXMLInfo is my dataset name with agreementeven as one of the datatable. I want to pass this table to above function.
in my aspx page i m using this code. to pass datatable to function.
BusinessLogic thread2_obj = new BusinessLogic();
MaskXMLInfo maskEvenAgmtXML = new MaskXMLInfo();
thread2_obj.ProcessRecords(maskEvenAgmtXML.agreeme nteven);
where am i going wrong?
|