Oct 01, 2010, 4:32 PM
Gridpanel + datasource
Hello everyone
This is my first time and quite new to Coolite, nontheless, I find it very attractive, and I want to give it a try.
Here's the deal:
I've developed objects such as:
As I said before I understand Coolite architecture, so is there a way to do the same thing with Store + Gridpanel?
Thank's in advance
Cheers
Francis
This is my first time and quite new to Coolite, nontheless, I find it very attractive, and I want to give it a try.
Here's the deal:
I've developed objects such as:
public void listrecords(GridView listuser, string strquery)
{
configkey k = new configkey(); // retrieve configurations from web.config
MySql.Data.MySqlClient.MySqlConnection cn = new MySql.Data.MySqlClient.MySqlConnection(k.key("constr", ""));
MySqlDataAdapter da = new MySqlDataAdapter(strquery, cn);
DataSet ds = new DataSet();
da.Fill(ds);
listuser.DataSource = ds;
listuser.EmptyDataText = "Não existem registos";
listuser.DataBind();
cn.Close();
}
Which allows me to populate programatically a gridview with a MySQL recordset .As I said before I understand Coolite architecture, so is there a way to do the same thing with Store + Gridpanel?
Thank's in advance
Cheers
Francis
Last edited by geoffrey.mcgill; Oct 01, 2010 at 9:06 PM.
Reason: please use [CODE] tags