Hi all,
I am working with mobileforms. The problem is after having the datatable in hand how can i display on mobile form. I tried with data gridview but it is not available in mobile parts. I tried with objectlist but it did not do my job..
My task is to simply display datatable on the mobile form, nothing else to do anything with it( no any operations on it). Can any body suggest a good way..
Thanking you all,
I am working with mobileforms. The problem is after having the datatable in hand how can i display on mobile form. I tried with data gridview but it is not available in mobile parts. I tried with objectlist but it did not do my job..
Code:
protected void btnOk_Click(object sender, EventArgs e)
{
ActiveForm = Form2;
}
protected void Form2_Activate(object sender, EventArgs e)
{
getmarks();
}
protected void getmarks()
{
string query;
query = "select tblStudentDetails1.AdmissionNumber,RegisterNumber,StudentName,tblMarks.Marks from tblStudentDetails1,tblMarks where tblMarks.CourseId='" + ddlCourse.Selection + "' and ";
query += " tblMarks.Semester='" + ddlSemester.Selection + "' and tblMarks.SectionName='" + ddlSection.Selection + "' and tblMarks.SubjectId='" + ddlSubject.Selection + "' and tblMarks.ExamType='" + ddlExamType.Selection + "' and tblMarks.AdmissionNumber=tblStudentDetails1.AdmissionNumber";
SqlConnection objCon = new SqlConnection(con);
SqlDataAdapter objDa = new SqlDataAdapter(query, objCon);
DataTable objDt = new DataTable();
objDa.Fill(objDt);
objList.DataSource = objDt.DefaultView;
objList.DataBind();
objList.Visible = true;
}
Thanking you all,