seang_sophorn Level: Big Cheese
 Registered: 07-06-2005 Posts: 26
|
Janus GridEX Control.
Anybody know Janus GridEX for .Net?
I can not load my data from my database into GridEX.
Here my sample code...
private void DisplayDepartmentMaster()
{
//Create the data adapter...
OleDbDataAdapter ObjDA = new OleDbDataAdapter("SELECT * FROM tblDepartment_mst", PublicConnection.ObjConn);
//Create the data set...
DataSet ObjDS = new DataSet();
//Fill the dataset using our dataadapter
ObjDA.Fill(ObjDS,"Department");
string file = Application.ExecutablePath;
this.GridDepartment.DataSource = ObjDS.Tables[0].DefaultView;
this.GridDepartment.DataMember = "Department";
//this.GridDepartment.RootTable.DataMember = "Department";
//this.GridDepartment.RootTable.Columns[0].DataMember = "departmentid";
//string file = Application.ExecutablePath;
}
any idea?
Please help.
____________________________
need for your help
|
|