Browse by Tags

All Tags » Posts from Previous Blog (RSS)

DataRow.ClearErrors doesn't quite cut it

As noted in my previous post , DataRow.ClearErrors isn't as useful as it could be, but seems to handle clearing errors quite reasonably as long as you can loop down to the DataRows in error. It's actually worse than I thought - ClearErrors will take the...

Arithmetic Rounding in .Net

Quiz time: what is the value of test after the following code runs: .csharpcode { font-size: 10pt; color: black; font-family: Courier New , Courier, Monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0px; } .rem {...

Data validation in .Net using ErrorProvider and DataSet errors

I currently make heavy use of .Net typed datasets to handle the communication of data transactions between my business and UI layers. Recently we started getting into some serious application testing, and discovered various bugs where the application...

Web Service calls from behind proxy servers

Here's something I posted on Mar 4, 2005 Recently I implemented a crash reporting capability into a .Net application. When an unhandled exceptions occurs (or application ThreadException), the user is presented with a dialog prompting them to submit it...

SelectNextControl method

And another post from Jan 19, 2005: Recently I had a need to switch focus to the next control on a form when the Enter key was pressed, under certain conditions. It seemed easy enough - just call SelectNextControl to have .Net read the tab order and select...

Sorting a data-bound ComboBox

Here's a post from Dec. 11, 2004: Recently I encountered a challenging situation in Windows Forms where I needed to sort the contents of a ComboBox involved in the middle of multiple levels of Data Binding. The combobox was on a window that provided a...