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!
|
|
OnCheckColumnToggle Column properties
Posted: 29 Aug 07 1:33 PM
|
I am trying to get the name of the Column. The syntax for this event is
Sub grdDataCheckColumnToggle(Sender, Column, AText, State)
MsgBox Column MsgBox Column.Name MsgBox Column.Heading MsgBox Column.Item(0).Name MsgBox Text
End Sub
All of the above MsgBox's result in "Object doesn't support this property or method". How do I get the column name from this? What are the other properties? Is there documentation for this stuff? I see nothing in the forums on this topic.
Many thanks. |
|
|
|
Re: OnCheckColumnToggle Column properties
Posted: 29 Aug 07 2:36 PM
|
assume you need visual studio for this stuff, one breakpoint and a watch window cover a world of issues.
column.Caption column.fieldname
look at the grid, columns property. edit a column and the label "generally" is the property name format is formattype I think. |
|
|
| |
|
Re: OnCheckColumnToggle Column properties
Posted: 30 Aug 07 12:09 AM
|
Column.Caption will give you the Column Header
Column.FieldName will give you the DB field associated with the column.
Also, I second the advice that you want to do this with a Good Debuger on hand. Add a Stop statement and when the debuger breaks you will find more information that what you probably wanted to know. |
|
|
|
Re: OnCheckColumnToggle Column properties
Posted: 30 Aug 07 8:35 AM
|
Paul,
Did you get this to work using .Caption (or anything, for that matter)?
I was working with this just last week. I tried every variation (.caption, .fieldname, etc.). Whereas AText and State values could be drawn, I received the "Object doesn't support this property or method" on any attempt to pull the value for column.
Ted TASK Raleigh NC |
|
|
| |
|