|
-
Mar 21st, 2000, 05:33 PM
#1
Thread Starter
New Member
I wasnt to display the contents of a database in a datagrid control. Any ideas?
-
Mar 21st, 2000, 05:53 PM
#2
I need info.....
What kind of database control are you using??
-Kayoca Mortation
-
Mar 21st, 2000, 06:08 PM
#3
Addicted Member
If you are using a MSHFlexgrid then just assign a recordset to the datasource property of the flexgrid and it should populate it without any problem:
example:
'
' Call stored procedure with customer number from combo box
'
Set lrs_history= getCustomerHistory(dComboHistory.BoundText)
' Call deUSD.populateGrid(dComboHistory.BoundText)
Set lrs_history = deUSD.rspopulateGrid
'
' Assign recordset to flexgrid
'
Set MSHFlexGrid1.DataSource = lrs_history
-
Mar 21st, 2000, 10:43 PM
#4
PowerPoster
to make our life easy you can just bound the DBGrid to a Data Control but iff you wish to display a particular data field record, then you may need to use the SELECT statement in the RecordSource property of the Data Control.
hope this can help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|