System.Data.DataTable tblMyPatientValues = new DataTable("tblMyPatientValues"); //defining data column
//1. DataColumn ColumnHeading = new DataColumn();
ColumnHeading.DataType = System.Type.GetType("System.String"); ColumnHeading.ColumnName = "Values1";
//2. DataColumn ColumnValue = new DataColumn();
ColumnValue.DataType = System.Type.GetType("System.String"); ColumnValue.ColumnName = "Values2";
//Assinging values to collumum acordingly //1
DataRow datarow01 = tblMyPatientValues.NewRow();
datarow01[ColumnHeading] = " Total Number of Patients Enrolled:";
datarow01[ColumnValue] = lblNoOfEnrolledPatients.Text;
tblMyPatientValues.Rows.Add(datarow01);
//2a //Assinging values to collumum acordingly
DataRow datarow02a = tblMyPatientValues.NewRow();
datarow02a[ColumnHeading] = " Number of Patients with a completed DOP CRF:"; datarow02a[ColumnValue] = "";
tblMyPatientValues.Rows.Add(datarow02a);
//if you want you can add this datatable to dataSet
Tuesday, November 27, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment