|
-
July 5th, 2011, 12:19 PM
#1
CCGrid column double click error
Hi! I'm having a little problem with a CCGrid object.
When a form loads, I fill the grid with data from a SQL Recordset, columns and rows get created and I get my form with all the data in it. So far so good. The thing is, if the first thing I do after the load finishes is double click on the column resize line, I get an error 5: invalid procedure of arguments.
If I click on anything on the form, then everything works ok, it's just if the very first thing I do is double click on a column border. The eventual action would be to auto-size the column width, which I'm not interested in anyway. But this crashes my program! And you can't expect the user to not double click on the column... if that makes your SW crash, it's the first thing they'll do =)
I'm initializing the object:
With CCGrid_Name
.AllowDelete = True
.AllowUpdate = True
.WordWrap = True
.HeadLines = 1
Set c = .Columns.Add("Name", "")
...
End With
I tried (with no effect):
- setting up a dblclick sub for the grid
- setting Focus to any object on Form_Load, crashed since object is not visible yet, learned something, tried next
- setting Focus to any object on Form_activate()
- simulating a click event in Form_Load
- simulating a double click event in Form_Activate
Any ideas? Thanks for the help!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|