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?
|