All entries for August 2005

August 22, 2005

BindingListView Code Online

Writing about web page http://www.gotdotnet.com/workspaces/workspace.aspx?id=ccbb6b50-6c55-4291-b191-f5c5f80ba122

I have created a DotGotNet workspace to host the source code for BindingListView.

link

Everyone is free to download and try out the code. There is a winforms test application included.
All feedback is welcomed.

– Andrew


August 19, 2005

Active BindingListView

Well it took me two days of playing with code and about 4 attempts, but I finally have what I wanted: An active filtering, active sorting, searchable BindingListView<T>. It serves as a data bindable view for a BindingList<T>, in the same way that a DataView provides a bindable view of a DataTable.

The BindingList<T> does provide a nice easy way to quickly databind a list of business objects to a UI, but it is lacking in certain areas. While you can just inherit from BindingList<T> to add simple sorting, etc, this then involves altering the internal list of data. While this is fine in simple cases it is not practical when you need multiple views of the same data and want to sort by multiple columns for example.

The really neat stuff is where adding/editing an item still maintains the current filter and sort.
It can sort by multiple columns (ascending or descending).
It can filter via implementations of the IItemFilter<T> interface, for example using a simple Predicate<T> delegate. But I may write a expression parser (for that SQL WHERE clause style filter) or even one that can compile C# or VB.NET on the fly to create the item filter logic.

Basically I'm totally chuffed! :D
I am planing to write an article detailling the code soon (once my hands recover from 2 days of coding!), so watch this space…


August 10, 2005

Back Online (At Last!)

After a month of no phone line (thanks BT), then waiting 10 days for ADSL to be enabled, my modem finally arrived. The box contained the ADSL modem, ethernet cable, phone cable and USB cable. Great, except.. no AC adapter – ARGH

OK first thing: email guy who sold it to me on eBay.
Now hunt around the house for a 9V @ 1A AC adpater.
Try using a 9V @ 250mA brick, which works but drops the ADSL connection after some time. Settled for a 10V @ 1.2A brick which seems to be OK.
eBay seller replied – he's sending out the proper adapter tomorrow hopefully.

So after all that I finally have a 2Mbit uncapped ADSL connection (with Freedom2Surf). Aah, I feel like I'm whole again!

[300 emails to download…]


Google Ads

Search this blog

Most recent comments

  • I scratched my eye while i was holding some kind of plastic packaging.. Anyways the corner of the pl… by Ercan on this entry
  • About a year ago my contacts that i was wearing, i guess were fautly, because shortly after they wer… by Jon on this entry
  • I got shower gel in my eye 4 and a half days ago, and becasue i rubbed my eyes a lot, i have scratch… by Chris on this entry
  • This website may help http://www.webmd.com/eye–health/tc/Eye–Injuries–Home–Treatment by S on this entry
  • I somehow got dirt, or debris in my eye. The terrible pain sent me in a tailspin. I was afraid of sa… by Bobbi on this entry

Tags

August 2005

Mo Tu We Th Fr Sa Su
Jul |  Today  | Sep
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31            

Galleries

Blog archive

Loading…
Not signed in
Sign in

Powered by BlogBuilder
© MMXXII