Normally if you were trying to sort a DataTable you would do see something like
DataTable table = retrieveTable();
DataView view = new DataView(table);
view.Sort = "Name";
datagrid1.DataSource = view;
Doing this works fine for UI cases, but if you need to get access to the sorted table you’ll want to do this.
DataTable unsortedTable = retrieveTable();
DataTable sortedTable = new DataTable();
Posted in Fun on May 19th, 2005 No Comments »
Here’s a link to the
MOD version of ‘(Is this the way to) Amarillo?’.
Full story over on the bbc.
Posted in Fun on May 16th, 2005 No Comments »
Grocery Store Wars | Join the Organic Rebellion
Another fantastic animation.
Posted in Computers, SQL on May 11th, 2005 No Comments »
Problem: I have an access 97 MDE file (compiled MDB) which uses an external data source (.DAT ?) on a network via linked tables. It has user security on it and I need to get the data out into SQL server. Because of the user security the upsizing wizard with Access 2000 cannot convert the [...]
In your ASPX page, add the following such that it renders in the top-right of the popup window
And add this code such that it renders in the bottom-left of the popup window
// Default window dimensions to add to the size we ‘read’ [...]
Taken from this blog is a technique which will postback the form when you hit enter. If you use the script below, it will work in any browser (although bypassing any onClick code for the button specified).
function clickButton(e, buttonid)
var bt = document.getElementById(buttonid);
if (typeof bt == ‘object’)
if (e.keyCode == 13)
if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
if (event.keyCode == [...]
Posted in Computers on May 2nd, 2005 1 Comment »
Socialanimal.com – the images at least – will be offair for a while until I get my server sorted out. I lost a hard drive last week which contains all the website, images, my email, contacts, etc. Until I get it fixed this blog is all you’ve got.