11/29/2024 11:34:24 PM
|
|
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!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
datagrid button column
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. |
|
|
|
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!
|
|
|
|
|
|
|
|