General information
Category:
Forms & Form designer
Pamela,
Another way is to create a class of the control with the code in it. When you change the ColumnCount property of your grid, by default each column is poplated with a generic textbox. You can then scan through your columns and add the subclassed control to each column...
For each oColumn in Thisform.oGrid.Columns
oColumn.AddObject("myTextBox1","myTextBox")
oColumn.CurrentControl="myTextBox1"
oColumn.myTextBox1.ControlSource="SomeControlSource"
oColumn.ControlSource="SomeControlSource"
Endfor
Before you can do this, you must have defined the class "myTextBox" and have that classlibrary loaded. If you use this method, you can change any method/event to meet your needs.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only