>The problem with setting the column width to 0 is that the user still can move the cursor onto those columns.
>
>I solve my problem in another way. i added a second datagrid to show subtotals, and will update the cursor in the afterrowcolchange event.
>
>Thanks anyway...
Wilson,
I know you solved the problem in another way, but you could've just disabled the column when it's width is 0, that would've taken care of moving the cursor onto them.
Something like:
with thisform.grdCourses.column3
.width = Iif(.width=0, 75, 0)
.enabled = .width > 0
endwith
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges