Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 29, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: datagrid button column
vaughn poulson
Posts: 28
 
datagrid button columnYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Aug 08 12:07 PM
i want to dynamically add a button to each column of my data grid. when the button is clicked i want to get the productid for the selected row. here is my code:
Dim col, i, strSql

strSql = "select productid, " & _
"name, " & _
"actualid, " & _
"supplier, " & _
"description " & _
"from product"

With dgProducts
.SQL.Text = strSql

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

Set col = .Add(2)


Set col = .Add(0)
col.FieldName = "productid"
col.Visible = false

Set col = .Add(0)
col.FieldName = "name"
col.Caption = "Name"
col.Width = 150

Set col = .Add(0)
col.FieldName = "actualid"
col.Caption = "Actualid"
col.Width = 150

Set col = .Add(0)
col.FieldName = "supplier"
col.Caption = "Supplier"
col.Width = 150

Set col = .Add(0)
col.FieldName = "description"
col.Caption = "Description"
col.Width = 150
End With
.Refresh
End With

I'm not sure what else i need to do to get the button to show and how to capture it's click event.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 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/29/2024 11:34:27 PM