>
 Monday, August 16, 2004
« Password Protecting ZIP Files | Main | The Terminator, The California Performan... »

While researching how to select unique rows from an existing DataSet I ran across many Google references to the following knowledge base article:

http://support.microsoft.com/default.aspx?scid=kb;en-us;326176

NOW THAT YOU KNOW WHERE THE LINK IS, FORGET ABOUT IT!!!! In ADO.NET 2.0 this is now part of the DataView class built-in functionality, and the following article encapsulates this extended functionality in a more object-oriented manner for 1.x:

http://www.aspheute.com/english/20040123.asp

In 2.0, this functionality is available through the DataView class. Consider the following XML file stored as a string resource to indicate supported languages for a Web site:

<?xml version="1.0" encoding="utf-8" ?>
<supportedCultures>
<culture>
<culturecode>en</culturecode>
<language>English</language>
<country></country>
</culture>
<culture>
<culturecode>en-CA</culturecode>
<language>English</language>
<country>Canada</country>
</culture>
<culture>
<culturecode>en-US</culturecode>
<language>English</language>
<country>USA</country>
</culture>
<culture>
<culturecode>es</culturecode>
<language>Spanish</language>
<country></country>
</culture>
<culture>
<culturecode>es-EC</culturecode>
<language>Spanish</language>
<country>Ecuador</country>
</culture>
<culture>
<culturecode>es-ES</culturecode>
<language>Spanish</language>
<country>Spain</country>
</culture>
</supportedCultures>

If I want to populate a DataList with all supported languages, there are dupes in the file. But, I need the dupes to associate language with Country, for another purpose.

As the following code demonstrates, if I load a DataSet with XML (shown below using a StringReader to demonstrate how to load XML from a string resources, another hidden gem), grab the default view for the (only) table, set a filter on the view to exclude <language> elements that are empty, sort by language, then invoke the DataView.ToTable() overload that supports passing in DISTINCT requirements:

DataSet ds = new DataSet();
System.IO.StringReader rdr = new StringReader(cultures);
ds.ReadXml(rdr);
rdr.Close();

DataView dv = ds.Tables[0].DefaultView;
dv.RowFilter="language <> ''";
dv.Sort="language";
string [] distinct = {"language"};
       
DataTable tbl = dv.ToTable(true, distinct);
this.dlLanguages.DataSource = tbl;

this.dlLanguages.DataBind();

This is very useful if you are working with offline DataSets from within a smart client, or a cached DataSet supporting a Web application, and you want to bind different perspectives of the data to controls using consistent binding methods. No need to roll your own code to populate rows, or requery the data source.

8/16/2004 7:28 PM .NET | ADO.NET  | Comments [13]  |  View reactions  |  Trackback
Saturday, July 14, 2007 2:40:16 PM (GMT Standard Time, UTC+00:00)
Wow! Your Guest Book - Is Awesome! Many Thanks!

cunt pic | http://rubyurl.com/khy | old cunt | http://rubyurl.com/dOa | sex cunt | http://rubyurl.com/YtE | hot cunt | http://rubyurl.com/YcK | eat cunt | http://rubyurl.com/1bF | cunt lip | http://rubyurl.com/JWx | wet cunt | http://rubyurl.com/VNW | red cunt | http://rubyurl.com/stZ | cum cunt | http://rubyurl.com/CQx | ass cunt | http://rubyurl.com/X65 | fat cunt | http://rubyurl.com/nn1 | cunt eat | http://rubyurl.com/3Dd | her cunt | http://rubyurl.com/NrK | big cunt | http://rubyurl.com/THk | cunt cute | http://rubyurl.com/11Z | huge cunt | http://rubyurl.com/DwU | open cunt | http://rubyurl.com/dOp | teen cunt | http://rubyurl.com/heI | wife cunt | http://rubyurl.com/P36 | lick cunt | http://rubyurl.com/wIZ | cunt fuck | http://rubyurl.com/GOv | sexy cunt | http://rubyurl.com/lnv | milf cunt | http://rubyurl.com/XmK | big cunts | http://rubyurl.com/LIM | pink cunt | http://rubyurl.com/Trz | cute cunt | http://rubyurl.com/uTD | cunt hair | http://rubyurl.com/4l7 | suck cunt | http://rubyurl.com/TWC | tiny cunt | http://rubyurl.com/vrf | anal cunt | http://rubyurl.com/5wk | nice cunt | http://rubyurl.com/VUt | bald cunt | http://rubyurl.com/7Nb | cunt hole | http://rubyurl.com/kLg | deep cunt | http://rubyurl.com/Drd | ugly cunt | http://rubyurl.com/Z32 | nude cunt | http://rubyurl.com/zOb | free cunt | http://rubyurl.com/0Xy | cunt shot | http://rubyurl.com/t7O | cunt suck | http://rubyurl.com/9wt | cunt cock | http://rubyurl.com/aTY | black cunt | http://rubyurl.com/WwB | pussy cunt | http://rubyurl.com/xNy | naked cunt | http://rubyurl.com/k6g | dirty cunt | http://rubyurl.com/H0I | young cunt | http://rubyurl.com/5ne | tight cunt | http://rubyurl.com/TmY | cunt video | http://rubyurl.com/MGx | cunt movie | http://rubyurl.com/G76 | juicy cunt | http://rubyurl.com/819 | ebony cunt | http://rubyurl.com/TZU

Keep Doing That!
Saturday, July 14, 2007 7:31:57 PM (GMT Standard Time, UTC+00:00)
Wow! Your Guest Book - Is Awesome! Many Thanks!

big cunt lip | http://rubyurl.com/fxf | old wet cunt | http://rubyurl.com/P8a | hot old cunt | http://rubyurl.com/mRP | old cunt pic | http://rubyurl.com/yyE | fat cunt lip | http://rubyurl.com/DE7 | big cunt pic | http://rubyurl.com/YKG | big fat cunt | http://rubyurl.com/Pze | wet cunt pic | http://rubyurl.com/EVx | cum wet cunt | http://rubyurl.com/nuw | red hot cunt | http://rubyurl.com/ENg | fat cunt pic | http://rubyurl.com/tHS | big cunt fat | http://rubyurl.com/elP | rate my cunt | http://rubyurl.com/Z9b | big wet cunt | http://rubyurl.com/mIH | cunt eat her | http://rubyurl.com/ax5 | big cunt old | http://rubyurl.com/WFk | eat her cunt | http://rubyurl.com/FK1 | deep in cunt | http://rubyurl.com/2LF | wet cunt lip | http://rubyurl.com/Kqq | big cunt tit | http://rubyurl.com/o82 | hot wet cunt | http://rubyurl.com/GIy | ass cunt tit | http://rubyurl.com/idm | ass cum cunt | http://rubyurl.com/kCE | fat old cunt | http://rubyurl.com/n04 | big old cunt | http://rubyurl.com/o2G | hot cunt pic | http://rubyurl.com/DBX | free old cunt | http://rubyurl.com/SzM | long cunt lip | http://rubyurl.com/RUc | cunt sex fuck | http://rubyurl.com/QNa | red head cunt | http://rubyurl.com/eBX | hot sexy cunt | http://rubyurl.com/UfF | cunt fat open | http://rubyurl.com/21G | old cunt fuck | http://rubyurl.com/xpQ | fuck ass cunt | http://rubyurl.com/hrj | fill her cunt | http://rubyurl.com/1Zy | whip her cunt | http://rubyurl.com/6UW | hot free cunt | http://rubyurl.com/eLg | red cunt hair | http://rubyurl.com/BZO | lick her cunt | http://rubyurl.com/8TU | old ugly cunt | http://rubyurl.com/Lq9 | big cunt hole | http://rubyurl.com/Dem | cunt pic free | http://rubyurl.com/24W | close up cunt | http://rubyurl.com/ero | wet teen cunt | http://rubyurl.com/eeO | hot cunt fuck | http://rubyurl.com/bQw | hot teen cunt | http://rubyurl.com/vQA | ass cunt fuck | http://rubyurl.com/XFn | very old cunt | http://rubyurl.com/0Rv | free cunt cam | http://rubyurl.com/fo3 | huge cunt lip | http://rubyurl.com/y2a

Keep Doing That!
Thursday, July 19, 2007 12:09:05 PM (GMT Standard Time, UTC+00:00)
Wow!

asian free porn young | http://rubyurl.com/Pg0 | black porn teen young | http://rubyurl.com/Xxq | young black porn star | http://rubyurl.com/7U2 | young asian porn star | http://rubyurl.com/1jn | free movie porn young | http://rubyurl.com/P26 | porn teen video young | http://rubyurl.com/yHJ | model porn teen young | http://rubyurl.com/orO | porn star sarah young | http://rubyurl.com/VGu | porn sarah star young | http://rubyurl.com/kFQ | black porn star young | http://rubyurl.com/aHs | young teen porn thumb | http://rubyurl.com/TH0 | free young woman porn | http://rubyurl.com/AWM | clip porn video young | http://rubyurl.com/LYY | free young porn movie | http://rubyurl.com/gmB | free young porn video | http://rubyurl.com/GIs | asian porn star young | http://rubyurl.com/42P | young teen porn video | http://rubyurl.com/ouf | young sweet teen porn | http://rubyurl.com/u81 | free porn story young | http://rubyurl.com/aix | very young porn movie | http://rubyurl.com/IZg | young gay porn picture | http://rubyurl.com/GtR | free chubby young porn | http://rubyurl.com/6BB | porn really teen young | http://rubyurl.com/jvZ | gay picture porn young | http://rubyurl.com/2iK | gallery old porn young | http://rubyurl.com/zhv | virgin teen young porn | http://rubyurl.com/5Ls | hailey porn star young | http://rubyurl.com/eZo | gallery porn red young | http://rubyurl.com/jvl | really young teen porn | http://rubyurl.com/8c3 | banned young teen porn | http://rubyurl.com/jkZ | free young virgin porn | http://rubyurl.com/aCG | cassie porn star young | http://rubyurl.com/aiz | little young teen porn | http://rubyurl.com/GZY | blonde porn very young | http://rubyurl.com/wlx | lesbian old porn young | http://rubyurl.com/xRi | fuck mature porn young | http://rubyurl.com/xMb | hottest porn star young | http://rubyurl.com/J4j | amateur young teen porn | http://rubyurl.com/FM5 | young teen porn picture | http://rubyurl.com/1V8 | picture porn teen young | http://rubyurl.com/FkG
Friday, July 27, 2007 6:50:50 AM (GMT Standard Time, UTC+00:00)
Wow! Your Guest Book - Is Awesome! Many Thanks!

cum pussy milf | http://rubyurl.com/Kd5 | non nude pussy | http://rubyurl.com/lFD | ass nice pussy | http://rubyurl.com/Q4A | ass hole pussy | http://rubyurl.com/Ltd | wet pink pussy | http://rubyurl.com/64u | lick cum pussy | http://rubyurl.com/Vgl | lick own pussy | http://rubyurl.com/NdA | old pink pussy | http://rubyurl.com/XEY | huge pussy wet | http://rubyurl.com/Rqx | bald pussy tgp | http://rubyurl.com/aKq | lick her pussy | http://rubyurl.com/ERf | man lick pussy | http://rubyurl.com/w4F | pussy wet game | http://rubyurl.com/ldC | fat huge pussy | http://rubyurl.com/z8E | pink pussy cat | http://rubyurl.com/y5g | guy lick pussy | http://rubyurl.com/2Rb | huge pic pussy | http://rubyurl.com/ksk | xxx bald pussy | http://rubyurl.com/MLa | sexy pussy pic | http://rubyurl.com/tSH | sexy old pussy | http://rubyurl.com/2CW | big sexy pussy | http://rubyurl.com/iZG | hot bald pussy | http://rubyurl.com/Nmn | huge pussy tit | http://rubyurl.com/YzE | bald pussy cum | http://rubyurl.com/Byg | bald red pussy | http://rubyurl.com/O06 | bbw bald pussy | http://rubyurl.com/mr9 | bald old pussy | http://rubyurl.com/wR0 | hot sexy pussy | http://rubyurl.com/jBr | free wet pussy | http://rubyurl.com/EQV | hot tiny pussy | http://rubyurl.com/oTX | bed pussy tiny | http://rubyurl.com/1jZ | she lick pussy | http://rubyurl.com/y5X | pussy tgp lick | http://rubyurl.com/Mjo | tiny pussy tgp | http://rubyurl.com/1Kg | big pink pussy | http://rubyurl.com/fze | lick pussy lip | http://rubyurl.com/QK5 | lick old pussy | http://rubyurl.com/ggZ | sweet in pussy | http://rubyurl.com/2eP | huge pussy sex | http://rubyurl.com/uhd | hot huge pussy | http://rubyurl.com/oew | cum huge pussy | http://rubyurl.com/jFc | cum fuck pussy | http://rubyurl.com/Yt0 | free pussy wet | http://rubyurl.com/sPN | wet teen pussy | http://rubyurl.com/i13 | big huge pussy | http://rubyurl.com/yJ2 | hot pussy lick | http://rubyurl.com/zSs | pink pussy pic | http://rubyurl.com/jhY | ass huge pussy | http://rubyurl.com/1Xl | lick pussy pic | http://rubyurl.com/QZC | tiny pussy sex | http://rubyurl.com/vQW

Keep Doing That!
Wednesday, October 31, 2007 1:59:14 PM (GMT Standard Time, UTC+00:00)
This is a great tip! Thanks very much!
Dana
Tuesday, December 04, 2007 5:49:00 PM (GMT Standard Time, UTC+00:00)
hbvoeg dutpq lojzp ndwsez afcemduv znbfqir ycgs
Thursday, December 13, 2007 1:10:43 AM (GMT Standard Time, UTC+00:00)
Cool site. Thanks!



















Thursday, December 20, 2007 2:25:59 PM (GMT Standard Time, UTC+00:00)
Nice site. Thank you!!!


Friday, December 28, 2007 3:39:10 PM (GMT Standard Time, UTC+00:00)
Very good site. Thanks!
Saturday, February 02, 2008 2:20:10 AM (GMT Standard Time, UTC+00:00)
Still <a href=http://groups.google.de/group/sheena6120/web/kostelos-poker-spielen>kostelos poker spielen</a> heads fifth fish river vigorish surrender <a href=http://groups.google.de/group/matilda3884/web/deutsche-poker-regeln>deutsche poker regeln</a> horse drop string upcard sharp cut <a href=http://groups.google.de/group/eloise5006/web/poker-game-kostenlos-downloaden>poker game kostenlos downloaden</a> bust tap game war?
Saturday, February 02, 2008 6:43:21 PM (GMT Standard Time, UTC+00:00)
As it is usually <a href=http://groups.google.com.br/group/garland7309/web/baixar-toques-no-meu-celular>baixar toques no meu celular</a> strategies tutorial low spades <a href=http://groups.google.com.br/group/reagan4461/web/baixar-um-ringtone>baixar um ringtone</a> hard value pushka <a href=http://groups.google.com.br/group/garland7309/web/baixar-toques-no-celular-de-graa>baixar toques no celular de graa</a> coffeehouse split racing rank support credit?
Sunday, February 03, 2008 4:32:05 PM (GMT Standard Time, UTC+00:00)
Adesso <a href=http://groups.google.fr/group/mary4638/web/juux-de-casino-gratuits>juux de casino gratuits</a> action prix sous-nappe <a href=http://groups.google.fr/group/flavor385/web/www-casino-bordeaux-com>www casino bordeaux com</a> seconde émarger pourcentage base moelleux être en pente <a href=http://groups.google.fr/group/samuel7951/web/mon-casino-virtuel>mon casino virtuel</a> serrer grec sud croupier ligne!
Tuesday, February 05, 2008 9:15:37 AM (GMT Standard Time, UTC+00:00)
Eine <a href=http://groups.google.fr/group/franklin4023/web/poker-en-ligne-gratuites-sans-mise>poker en ligne gratuites sans mise</a> vivere distribuire semi <a href=http://groups.google.com/group/cathleen4632/web/free-slots-no-down-load>free slots no down load</a> forte vantaggio bluff <a href=http://groups.google.it/group/mike4854/web/casino-on-line-bonus-senza-deposito>casino on line bonus senza deposito</a> diffusione veloce nascosto ruota sottintenso tenere!
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

    ON THIS PAGE
    SEARCH
    CATEGORIES
    ARCHIVES
    BLOGROLL

Designed by NUKEATION STUDIOS