Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00403742
Message ID:
00403915
Views:
7
grid.DeleteColumn(<i>nColumnOrder</i>)
Be aware though, that once you've removed a column, the column numbers all get shifted, so what was column 3 before a DeleteColumn(2), will now be column 2.

You could also use
grid.RemoveObject("Column2")
or
* for each column you want to set order for
** in this case, set column5 first, column 8 second, remove rest
WITH grid && needs full object path, but just for the example
  .Column5.ColumnOrder = 1
  .Column8.ColumnOrder = 2
  .ColumnCount = 2
ENDWITH
>Hi:
>I have a problem with a grid that has 10 columns and depending on a variable based on the first column, needs to have less columns (sometimes as little as 2). I think that the RemoveObject Method (help says Object.RemoveObject(cObjectName) might help but I am not sure of how to implement it in on the grid.
>Any hints?
>
>Thank you.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform