Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is MSFlexgrid have bug? 1

Status
Not open for further replies.

Goudarz

Programmer
Jun 13, 2004
14
FR
Hello,

I write a big application which uses MSFlexgrid. Today I face a bug and after tracing it I reach to this point that MSFlexGrid have a bug that under some conditions, RemoveItem didn't work correctly. Am I right? Is anyone face this bug or I must find my bug in other place?

Please help me, My boss want to hear a good explanation from me :|

-- Goudarz
 
Service pack 5 is installed on my Visual Basic
 
That should be okay, although not connected there is service pack 6 available now. You say its a problem on some conditions, are they removing the wrong row or something?. I know sometimes it gets a mess with row 1 being 0. Maybe you can identify the code where its happening, nd post it on the forum for people to see and make comment. Sorry unable to help so far.
 
Let me ask my question in other way, Is it possible that a MSFlexGrid didn't responde to RemoveItem command in certain condition?

Please help me.
 
How are you using the removeitem? If you are removing more than one line, you must start at the highest row to the lowest, as the rows get renumbered as soon as you remove one.

So if you have:

1
2
3
4
5

and delete 3, you now have

1
2
4 --> 3
5 --> 4

If you remove in the opposite order, you may not get what you are expecting.

"I think we're all Bozos on this bus!" - Firesign Theatre [jester]
 
Thank you ArtieChoke, I have a grid that I fill it with some data and I want to remove one row from it. This grid worked fine for over a year. And this bug happend just one time. This grid is in a huge application and I think when system resource is very low, maybe grid don't functioning well. Am I right?
However this condition is not a normal condition, and I know my syntax is right because it worked for over a year.

I just want to know if my theory is right or not?
 
You say this problem only happened once? Is it still happening?

The likelyhood of it being a bug in the flexgrid control is fairly low, but it could happen. I ran a quick search on the MS site for removeitem and bug and found a couple of problems, but they were fixed by sp5.

It might be that a case that was never expected or handled by the code showed up - a very low probability one - but it does happen. And those are the worst to find - doh!

"I think we're all Bozos on this bus!" - Firesign Theatre [jester]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top