CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 beforeshowrow event on grid (want to override datasource with my own database connection)

Print topic Send  topic

Author Message
CodeChargenewbie

Posts: 114
Posted: 02/06/2008, 8:09 AM

This is strange. I've never had problems before with beforeshowrow on a grid. But for some reason, I can't get it to work the way I wish.

The grid seems to require a datasource; otherwise, it complains. So, I use the gui build query to compile the datasource. But I don't want to use the datasource to fill in the controls in the grid. I want to use my own sql connection in custom code to set values to the controls.

I'd appreciate if someone can tell me the proper the way to do this? Just as important, how does beforeshowrow work? Say I want to retrieve 5 records from the database. how would the beforeshowrow event look like?
View profile  Send private message
mrachow


Posts: 509
Posted: 02/06/2008, 8:43 AM

I think it would be better to add all database connection you would like to use under project settings|Connections.

On the other hand it should be possible to code everything. I would suggest to have a look on a generated page to see how classes like DataSource were created. The Component Reference Manual will give an overview how to set properties for DataSource and Grid.
_________________
Best regards,
Michael
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.