I have this code to fill a datagrid from a firebird table. The code works fine with a desktop PC, but when I compile the code with Compact Framework it doesn't work (I work with the CF compiled version of FirebirdClient). Any suggestion?.

____________________________________________________________________

FbConnection myConnection1 = new FbConnection(connectionString);

myConnection1.Open();

FbDataAdapter Socis = new FbDataAdapter();

FbTransaction transaction = myConnection1.BeginTransaction();

DataSet ds = new DataSet();

Socis.SelectCommand = new FbCommand("SELECT * FROM SOCIOS", myConnection1, transaction);

try

{

Socis.Fill(ds);

}

catch (FbException ex)

{

MessageBox.Show(ex.Message);

}

this.GridArbre.DataBindings.Add("DataSource", ds, ds.Tables[0].TableName);

Socis.Dispose();

myConnection1.Close();

_____________________________________________________________________

 

Thanks

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to