This nightmare began when I clicked row two cell two. Row two cell two is a ComboBoxCell. I have several more such cells in this grid, and all of them are just fine, except this one. Each time I attempt to enter this cell, I get: “Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function”.
I checked each and every event of the grid. I tested (again) to see which event fires before which, as I have code in: CellBeginEdit, CellEndEdit, CellEnter, CellLeave, CurrentCellDirtyStateChanged, DataError and EditingControlShowing, only to find out that the problem is only in the CellEnter event, and only when the cell in row two cell two is accessed.
Do I really have to say that this took hours on hours of debugging?
Eventually, at 1:15 AM, I switched field two with field three (which is a TextBoxCell). Now the ComboBoxCell is in row three cell two, and row two cell two is a TextBoxCell. The problem is gone. Vanished. Nada. Both cells are behaving just fine.
So is this a DataGridView bug, or is it just me?

A Joke Named BBC
The BBC has a website: See for yourself. It is interesting, diversified, and contra to everything the Internet represents. These guys think that this is a newspaper. Well, online newspaper, but still a newspaper. The best example is the “Have Your Say” thing, where you can commets on issues on the news. So, you write a comment, click the “Submit” button, and in six, seven hours max, your comment is published, if, and only if it can make its way through the “Moderators”. Oh, the Moderators. This is a group of editors who basically decide if the comment is within the BBC guidelines.
Once they had this topic: Does God have a role in the world today?. So I commented that “God died at Auschwitz”. The comment was rejected, of course. Only that the moderators didn’t know that this is a common phrase among survivors of the Holocaust, among them Haim Cohen, Chief Justice of the Israeli Supreme Court, and a survivor himself. But ignorance aside, if it takes six or seven hours for a comment to publish, then what’s the point?
Today I commented on someone elses comment. Now this was a real adventure: For one, there is no way to comment on comments. You have to quote the original comment. However, you are limited to a certain number of characters in your comment, so quoting the original one does not leave many characters for your own comment. Further more, if my comment, which was meant to comment on somebody elses comment, is published six hours later, who is gonna make the connection?
This is anti-Internet at its best. These guys simply do not understand the media.
FWIW.
- The rest of them World
on April 20, 2009 at 3:57 pm Leave a CommentTags: bbc, blog, comment, comments, have your say, internet, linkedin