coding a mshflexgrid question 28896820

isnoend2001
isnoend2001 used Ask the Experts™
on
regarding coding a msflexgrid
Each column does a different thing some cannot be edited
the EnterCell fires just before the ClickEvent
 which should be coded ?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
OK, I'll take a look.

Author

Commented:
Ok
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
I'm not sure what you are asking. Yes, some columns can not be edited. Is that a problem?

And yes the EnterCell fires just before the ClickEvent. The code for both of those events could probably be combined into either event but there is a problem with the way we are using the EnterCell. We use it, in part, to tell the user that the cell can't be edited, but the event is only fired when the sell entered is changed. So if you click on, say, one of the Reminder Type cells you get the message saying it can't be edited, but if you click on the same cell again nothing seems to happen. Is that what you want fixed? BTW what does happen on the second click is that an error occurs but because of the way that the error is handled, there;'s no error message.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
I was thinking the entercell nothing happens if the cell has already been entered.
I am thinking that putting an exit sub in the entercell and coding the click event
Would that fix the issue of nothing happening ?
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
I will fix that problem for you. Do you care how I do it?
Older than dirt
Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
Here's a new version

This version includes
Modified code so that GridMaster EnterCell fires if the same sell is  entered twice or more in a row. (the problem you stated here)
Fixed a problem where DTPicker1 was showing up any time frmRemider was clicked
Removed some dead variables and changed some scopes from Public to Private
28897803.zip

Author

Commented:
thankks ready,for another question ?
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
Yes. Please make it the one about facts. I now understand the process and I believe I can get it working in short order.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial