Re: Re: dbgrid

Kevin Gordon <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
On Tue, 27 Jul 2004 07:40, Pedro Cardoso wrote:
> The problem is that the sample quits right after starting.
>
Hi Pedro
What type of database are you trying to access?
Do you have an ODBC driver set-up?
Have you read the ReadMe.txt?
............../wx.NET-0.5/Samples/DbGrid/readme.txt
***********************************************************************
(Tests were done with PostgreSQL)

Create a dabatbase named test

Create table testtable:

CREATE TABLE testtable(
	id	VARCHAR(19),
	name VARCHAR(200),
	street VARCHAR(200),
	city VARCHAR(200)
);

Fill the table with some test-data: 
INSERT INTO testtable (id, name, street, city) VALUES ('1', 'John Doe', 
'Bakerstreet', 'Chicago');
....

Don't forget to change the settings in
dbcon.ConnectionString ="DSN=test;UID=alex;DATABASE=test";
to the settings that you need.

Alexander Olk
*********************************************************************************************
Regards
Kevin Gordon
New Zealand


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.