Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, November 21, 2024 
 
View User Profile  

 User Profile - Ferdi  
Ferdi
ATI

fjrigjwwe9r1SiteUser:UserBio
fiogf49gjkf0d


Log in to send this member a message!
 


 Ferdi's Contributions
Ferdi has contributed 2 comments and 0 articles.
 
Select to view:    
Comment: Re: Dynamically Creating DataGrid Columns
fiogf49gjkf0d
Hi Ryan,

My code is..... Im using the default datagrid of VB6.... Do I need to use the SLX ocx?where can I download it? Thanks

Dim col
Dim i

With DataGrid1
.SQL.Text = "SELECT header_id, order_no, ordered_date FROM so_header"

With .Columns
'remove any existing columns
If (.Count > 0) Then
For i = 0 To .Count - 1
.Item(0).Delete
Next
End If

'add column for header_id field
Set col = .Add(0)
col.FieldName = "header_id"
col.Caption = "Header ID"
col.ReadOnly = True

'add column for order_no field
Set col = .Add(0)
col.FieldName = "order_no"
col.Caption = "Order No"
col.ReadOnly = True
'add column for ordered_date field
Set col = .Add(0)
col.FieldName = "ordered_date"
col.Caption = "Order Date"
col.ReadOnly = True


End With
'now refresh the grid to see the new columns
.Refresh
End With

Author: Ferdi - 6/21/2007

 
Comment: Re: Dynamically Creating DataGrid Columns
fiogf49gjkf0d
Im trying to retrieve record during runtime using datagrid. Im getting a compile error method or data member not found.....How will I solve this problem? Am I missing something?Do I need to download the SLXSaleslogic.ocx? Thanks

Author: Ferdi - 6/20/2007

 


 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/21/2024 7:18:03 PM