# Friday, June 27, 2003

DataGrid Nirvana

 

Last night us RDs went to a traditional North African sheesha (looks like a fancy bong) bar to smoke fancy tobacco. We even got Andrew Brust to smoke out of it (apple flavored tobacco)! All done with my sessions, so Goksin and I will go visit historic Carthage.

 

North African developers love the ASP .NET DataGrid. My session, Asp .Net DataGrid Drill Down (Code and Slide Download) was so much fun and fun was had by all. The sorting code went over very well. here is the code we spent the most time on:

private void SortGrid(object source,DataGridSortCommandEventArgs e)

{

//SQL String that will be used

string strSQL = "Select * From Customers";

//the Order By

string strOrderBy = "ASC";

 

//See what the viewstate has for the sortfield and ASC/DESC

if (e.SortExpression.ToString() == ViewState["sortField"].ToString())

{

//a match, see if ASC or DESC

strOrderBy = ViewState["sortDirection"].ToString();

//now toggle the viewstate for later

switch (strOrderBy)

{

case "ASC":

ViewState["sortDirection"] = "DESC";

break;

case "DESC":

ViewState["sortDirection"] = "ASC";

break;

}

}

else

{

//New Field, so it will be ASC by default, so make DESC

ViewState["sortField"] = e.SortExpression.ToString();

ViewState["sortDirection"] = "DESC";

}

//SQL statement compelted

strSQL = strSQL + " " + " ORDER BY [" + e.SortExpression + "] " + strOrderBy;

//set the grid to the first page before you resort

DataGrid1.CurrentPageIndex = 0;

//call the FillGrid method to rebind the grid w/ new OrderBy

FillGrid(strSQL);

}

posted on Friday, June 27, 2003 8:17:20 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [14] Trackback
Tuesday, May 10, 2005 1:41:28 AM (Eastern Daylight Time, UTC-04:00)
You may find it interesting to check some information dedicated to online gambling http://www.juris-net.com/online-gambling.html
mohegan sun casino http://www.juris-net.com/mohegan-sun-casino.html
three card poker http://www.juris-net.com/three-card-poker.html
casino game http://www.juris-net.com/casino-game.html
poker chip for sale http://www.juris-net.com/poker-chip-for-sale.html
barona casino http://www.juris-net.com/barona-casino.html
casino employment http://www.juris-net.com/casino-employment.html
black jack rules http://www.juris-net.com/black-jack-rules.html
custom casino chips http://www.juris-net.com/custom-casino-chips.html
casino poker black jack http://www.juris-net.com/casino-poker-black-jack.html
popular online casinos http://www.juris-net.com/popular-online-casinos.html
fitzgeralds casino http://www.juris-net.com/fitzgeralds-casino.html
build own poker table http://www.juris-net.com/build-own-poker-table.html
video blackjack http://www.juris-net.com/video-blackjack.html
winning at slot machines http://www.juris-net.com/winning-at-slot-machines.html
why is gambling bad http://www.juris-net.com/why-is-gambling-bad.html
freeware slots http://www.juris-net.com/freeware-slots.html
indiana gambling boats http://www.juris-net.com/indiana-gambling-boats.html
asia gambling market http://www.juris-net.com/asia-gambling-market.html
black jack table covers http://www.juris-net.com/black-jack-table-covers.html
free craps software http://www.juris-net.com/free-craps-software.html
lottery results for oregon keno http://www.juris-net.com/lottery-results-for-oregon-keno.html
multiplayer craps games http://www.juris-net.com/multiplayer-craps-games.html
poker craps http://www.juris-net.com/poker-craps.html
roulette blackjack craps http://www.juris-net.com/roulette-blackjack-craps.html
blackjack probability calculator download free http://www.juris-net.com/blackjack-probability-calculator-download-free.html
craps game downloads http://www.juris-net.com/craps-game-downloads.html
delphinium blackjack http://www.juris-net.com/delphinium-blackjack.html
epassporte black jack http://www.juris-net.com/epassporte-black-jack.html
craps download free http://www.juris-net.com/craps-download-free.html
barcelo complexe roulette http://www.juris-net.com/barcelo-complexe-roulette.html
casino roulette free download games http://www.juris-net.com/casino-roulette-free-download-games.html
purchase keno game http://www.juris-net.com/purchase-keno-game.html
black jack practice http://www.juris-net.com/black-jack-practice.html
keno winning http://www.juris-net.com/keno-winning.html
- Tons of interesdting stuff!!!
Sunday, May 15, 2005 7:38:45 PM (Eastern Daylight Time, UTC-04:00)
You may find it interesting to check the pages about casino http://www.alleghenydist.net/casino.html
... Thanks!!!
Tuesday, May 31, 2005 3:18:22 PM (Eastern Daylight Time, UTC-04:00)
You may find it interesting to check some relevant pages about loans http://www.racepointfunding.com/loans.html
home loans http://www.racepointfunding.com/home-loans.html
payday loans http://www.racepointfunding.com/payday-loans.html
home equity loan http://www.racepointfunding.com/home-equity-loan.html
payday loan http://www.racepointfunding.com/payday-loan.html
refinance http://www.racepointfunding.com/refinance.html
personal loans http://www.racepointfunding.com/personal-loans.html
debt consolidation loan http://www.racepointfunding.com/debt-consolidation-loan.html
payday advance http://www.racepointfunding.com/payday-advance.html
credit card offers http://www.racepointfunding.com/credit-card-offers.html
- Tons of interesdting stuff!!!
Tuesday, June 7, 2005 1:19:10 PM (Eastern Daylight Time, UTC-04:00)
Please visit the pages about pacific poker http://www.poker-7.com/pacific-poker.html
texas hold em http://www.poker-7.com/texas-hold-em.html
poker rooms http://www.poker-7.com/poker-rooms.html
online poker http://www.poker-7.com/online-poker.html
texas holdem http://www.poker-7.com/texas-holdem.html
...
Wednesday, June 8, 2005 1:08:58 AM (Eastern Daylight Time, UTC-04:00)
You may find it interesting to check the pages in the field of casino http://www.casino-y.com/casino.html
free slots http://www.casino-y.com/free-slots.html
online casinos http://www.casino-y.com/online-casinos.html
roulette http://www.casino-y.com/roulette.html
slot machines http://www.casino-y.com/slot-machines.html
...
Sunday, June 19, 2005 6:44:59 PM (Eastern Daylight Time, UTC-04:00)
You can also visit some relevant pages in the field of online casino http://www.rebuildsanmateohighschool.org/online-casino.html
online casinos http://www.rebuildsanmateohighschool.org/online-casinos.html
slot machines http://www.rebuildsanmateohighschool.org/slot-machines.html
casino on net http://www.rebuildsanmateohighschool.org/casino-on-net.html
casino games http://www.rebuildsanmateohighschool.org/casino-games.html
casino gambling http://www.rebuildsanmateohighschool.org/casino-gambling.html
internet casino http://www.rebuildsanmateohighschool.org/internet-casino.html
online casino gambling http://www.rebuildsanmateohighschool.org/online-casino-gambling.html
casino online http://www.rebuildsanmateohighschool.org/casino-online.html
roulette http://www.rebuildsanmateohighschool.org/roulette.html
.
Wednesday, June 22, 2005 3:48:21 AM (Eastern Daylight Time, UTC-04:00)
You may find it interesting to check out the sites about internet casino http://www.scottishtutors.com/internet-casino.html
- Tons of interesdting stuff!!!
Saturday, June 25, 2005 12:49:12 PM (Eastern Daylight Time, UTC-04:00)
You are invited to visit some relevant pages in the field of blackjack http://www.baby-casino.com/blackjack.html
gambling http://www.baby-casino.com/gambling.html
online casino http://www.baby-casino.com/online-casino.html
...
Monday, June 27, 2005 4:00:05 PM (Eastern Daylight Time, UTC-04:00)
Take your time to check out the sites about pacific poker http://www.low-tek.com/pacific-poker.html
texas hold em http://www.low-tek.com/texas-hold-em.html
party poker http://www.low-tek.com/party-poker.html
poker rooms http://www.low-tek.com/poker-rooms.html
texas holdem http://www.low-tek.com/texas-holdem.html
...
Saturday, July 2, 2005 8:05:34 AM (Eastern Daylight Time, UTC-04:00)
You can also check the pages on poker strategy http://www.poker-boulevard.com/poker-strategy.html
clay poker chips http://www.poker-boulevard.com/clay-poker-chips.html
poker game http://www.poker-boulevard.com/poker-game.html
poker odds http://www.poker-boulevard.com/poker-odds.html
poker chip sets http://www.poker-boulevard.com/poker-chip-sets.html
cheap poker chips http://www.poker-boulevard.com/cheap-poker-chips.html
crazy game of poker http://www.poker-boulevard.com/crazy-game-of-poker.html
poker sets http://www.poker-boulevard.com/poker-sets.html
free texas hold em http://www.poker-boulevard.com/free-texas-hold-em.html
poker table plans http://www.poker-boulevard.com/poker-table-plans.html
online texas holdem http://www.poker-boulevard.com/online-texas-holdem.html
free video strip poker http://www.poker-boulevard.com/free-video-strip-poker.html
poker chip http://www.poker-boulevard.com/poker-chip.html
holdem http://www.poker-boulevard.com/holdem.html
world poker tour http://www.poker-boulevard.com/world-poker-tour.html
online poker rooms http://www.poker-boulevard.com/online-poker-rooms.html
personalized poker chips http://www.poker-boulevard.com/personalized-poker-chips.html
poker set http://www.poker-boulevard.com/poker-set.html
absolute poker http://www.poker-boulevard.com/absolute-poker.html
strip poker game http://www.poker-boulevard.com/strip-poker-game.html
poker site http://www.poker-boulevard.com/poker-site.html
poker tips http://www.poker-boulevard.com/poker-tips.html
poker hands http://www.poker-boulevard.com/poker-hands.html
poker chips for sale http://www.poker-boulevard.com/poker-chips-for-sale.html
poker party http://www.poker-boulevard.com/poker-party.html
online casino poker http://www.poker-boulevard.com/online-casino-poker.html
custom poker chip http://www.poker-boulevard.com/custom-poker-chip.html
casino poker http://www.poker-boulevard.com/casino-poker.html
empire poker http://www.poker-boulevard.com/empire-poker.html
custom poker chips http://www.poker-boulevard.com/custom-poker-chips.html
.
Friday, July 8, 2005 1:15:15 AM (Eastern Daylight Time, UTC-04:00)
In your free time, check dedicated to free slots http://www.favorite-casino.com/free-slots.html
blackjack http://www.favorite-casino.com/blackjack.html
... Thanks!!!
Monday, August 8, 2005 3:55:06 AM (Eastern Daylight Time, UTC-04:00)
You can also check out some information about danger diet pill taking http://www.the-discount-store.com/diet-pill.html
... Thanks!!!
Monday, September 19, 2005 4:56:32 PM (Eastern Daylight Time, UTC-04:00)
You may find it interesting to visit the pages in the field of online casinos http://www.casino-extras.com/
online casino http://online-casino.casino-extras.com/
internet casino http://internet-casino.casino-extras.com/
slot machines http://slot-machines.casino-extras.com/
casino games http://casino-games.casino-extras.com/
...
Tuesday, October 4, 2005 7:09:03 PM (Eastern Daylight Time, UTC-04:00)
Take your time to visit some relevant information onhttp://www.vsymphony.com/online-prescription.html#-illegally-ordering-online-prescriptions-review-
- Tons of interesdting stuff!!!
Comments are closed.