I have the following code in which i am getting ResultSet from Access Database but i dnt know how to bind it with Grid. I write this method in Form Init and i have two StringEdit Fields username and password. Anyone knows how to bind it ?
public void init()
{
loginProperty loginProperty = new LoginProperty();
ODBCConnection odbcConnection;
Statement sql;
ResultSet result;
;
super();
loginProperty.setDSN('NewDSN');
//loginProperty.setUsername('');
//loginProperty.setPassword('');
odbcConnection = new ODBCConnection(loginProperty);
if (odbcConnection)
{
sql = odbcConnection.createStatement();
result = sql.executeQuery("select * from myTestTable");
while (result.next())
{
}
}
}
*This post is locked for comments