How do you bind an ADO recordset object to an MSFlexGrid at runtime???? The
help says you just do the following:
Set grdFlexGrid.Datasource = objRecordSet
This doesn't work!! Help Please!
Marcus
Set grdFlexGrid.Datasource = objRecordSet
This doesn't work!! Help Please!
Marcus
--
Andrew Grillage
http://www.concresco.com
> Set grdFlexGrid.Datasource = objRecordSet
> This doesn't work!! Help Please!
> Marcus
You easily load a recordset into a MSFlexGrid control using the Clip
property.
The following example uses
' Populate grid with record set
With grdOrderForms
'Size grid
.Rows = intNumRows
.Cols =intNumCols
' Populate grid
.Row = 0
.Col = 0
.RowSel = intNumRows-1
.ColSel = intNumCols-1
.Clip = adoRecordSet.GetString(adClipString)
End With
This demonstrates just one way to accomplish this, others exist.
> Set grdFlexGrid.Datasource = objRecordSet
> This doesn't work!! Help Please!
> Marcus
set flxSample = rstSample
Thats all there is to it.
Larrin
On Thu, 25 May 2000 05:24:13 -0400, "Matt Werner"
>You easily load a recordset into a MSFlexGrid control using the Clip
>property.
>The following example uses
>' Populate grid with record set
>With grdOrderForms
> 'Size grid
> .Rows = intNumRows
> .Cols =intNumCols
> ' Populate grid
> .Row = 0
> .Col = 0
> .RowSel = intNumRows-1
> .ColSel = intNumCols-1
> .Clip = adoRecordSet.GetString(adClipString)
>End With
>This demonstrates just one way to accomplish this, others exist.
>> How do you bind an ADO recordset object to an MSFlexGrid at runtime????
>The
>> help says you just do the following:
>> Set grdFlexGrid.Datasource = objRecordSet
>> This doesn't work!! Help Please!
>> Marcus
>Thats all there is to it.
>Larrin
>On Thu, 25 May 2000 05:24:13 -0400, "Matt Werner"
>>Marcus:
>>You easily load a recordset into a MSFlexGrid control using the Clip
>>property.
>>The following example uses
>>' Populate grid with record set
>>With grdOrderForms
>> 'Size grid
>> .Rows = intNumRows
>> .Cols =intNumCols
>> ' Populate grid
>> .Row = 0
>> .Col = 0
>> .RowSel = intNumRows-1
>> .ColSel = intNumCols-1
>> .Clip = adoRecordSet.GetString(adClipString)
>>End With
>>This demonstrates just one way to accomplish this, others exist.
>>> How do you bind an ADO recordset object to an MSFlexGrid at runtime????
>>The
>>> help says you just do the following:
>>> Set grdFlexGrid.Datasource = objRecordSet
>>> This doesn't work!! Help Please!
>>> Marcus
1. Bind an ado recordset directly to an ado data control (adodc)
Can an ado recordset be directly bound to an ado data control? If so, how?
2. PMON error
3. Error 91 when trying to bind an ADO Recordset to an MSFlexGrid Control
5. Changing the source on an ADO recordset bound to controls
6. odbc with nt4.02b2 & paradox70
7. Bound controls not updating ADO with adodc.recordset.update command
8. Deadlocks
9. ADO code generated recordset and binding to form controls
10. Calculated controls in Access Form bound to ADO recordset
11. Data designer bound controls seem to lose their binding to the recordset with Requery
12. OLE Bound control won't bind ADO source
13. Recordset reuse/Rebind Controls Versus Many Recordsets/Binding once