If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > MSFlexGrid.DataSource Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-03, 06:02
mike_abc mike_abc is offline
Registered User
 
Join Date: Nov 2003
Location: Bucharest, Romania
Posts: 17
MSFlexGrid.DataSource Problem

I cannot bind a msflexgrid datasource to an open recordset. Grid and recordset work, I can populate the grid manually from the recordset, but when I try to bind them (set flex.datasource=rs) I get an error.

I tried the same thing with a DataGrid - it works fine (but I like more the layout of the flexgrid :-) ).

CAN msflexgrids be bound to recordsets ? The Help says yes, but no example I've seen contains recordsets - only data controls.

Can anyone help ?

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-24-03, 07:48
Marvels Marvels is offline
Registered User
 
Join Date: Jul 2003
Location: Amsterdam, Nederland
Posts: 449
Question question

Do you boud it in code or with property

btw watch out you have the MS H Flexgrid (only works with adodb) and the MS Flexgrid (datacontrole)
Reply With Quote
  #3 (permalink)  
Old 11-24-03, 09:00
mike_abc mike_abc is offline
Registered User
 
Join Date: Nov 2003
Location: Bucharest, Romania
Posts: 17
Re: question

Quote:
Originally posted by Marvels
Do you boud it in code or with property

btw watch out you have the MS H Flexgrid (only works with adodb) and the MS Flexgrid (datacontrole)
In code, like

....
set rs = new adodb.recordset
rs open .......
set flex1.datasource = rs '<error occurs here>
....
Reply With Quote
  #4 (permalink)  
Old 11-24-03, 22:37
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
The flexgrid is not an ado control.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On