Greg Robinson's Blog

I report it, you decide

Click Once

Custom Authentication in Windows Forms

DataBinding Stuff

Favorite Links

My book contribution

My Book Reviews

My Personal Life

Richmond, VA .NET Users Group

Smart Client Stuff

What I am reading

November 2004 - Posts

If you could work with anyone for a week, who would it be?

If you could spend one week working and learning with an industry guru, who would it be?

Mine changes depending on what I am working on or what I am interested in at the time.  Though, it's usually none other than Mr. Ian Griffiths.

The guy is simply money, and he doesn't even know it!

I'd consider Chris Sells.  Though I am not sure I can sit with him for a week as I think our personalities would clash.

I think Ted Pattison would be pretty cool too.

 

 

Custom Exceptions, Inherit from what type?

I have heard ApplicationException. I have heard Exception.

From a MS source:

"......originally ApplicationException was intended to be derived from, however we've changed our tune on that one given how the hierarchy ended up developing. The new guidance is to derive directly from Exception in all cases where you would have derived from ApplicationException.  The guidelines on MSDN still have the old text. We will be updating  them, but probably not until after Whidbey goes out the door. As it  happens, there's some discussion of the issue here:

http://blogs.msdn.com/brada/archive/2004/03/25/96251.aspx.

"

System.Data.RowNotInTableException

I got this exception for the first time today:

Exception Type: System.Data.RowNotInTableException
Message: This row has been removed from a table and does not have any data.  BeginEdit() will allow creation of new data in this row.
TargetSite: Int32 GetDefaultRecord()
HelpLink: NULL
Source: System.Data

After staring at it for a minute, I realized what I was doing.

Classic case of iterating through Rows collection and trying to call remove on a DataRow found, while still iterating the Collection.  

Now, I temporarily store the DataRow and Remove it after iterating through all the Rows.

More Posts