Eric 的个人资料Eric L. Golpe照片日志列表更多 ![]() | 帮助 |
|
3月9日 The day today..Weel, I'm not sure what a three day wait will have in store, but maybe someone can let me in on what http://www.defyallchallenges.com/ is all about. Another MS marketing ploy? Of course. That aside, they have a new promo for 'exam insurance' which lets you retake an exam if you fail it, or get 25% off the next exam if you pass, and in the interim, you get a free Technet Direct subscription (woo-hoo) if you partake of the insurance and exam by April 30th. Good deal. I signed up already.
I lost all my PDA data, and a restore worked well under Vista (which I was able to finally 'genuine advantage' by calling and activating (my already "activated") installation of Vista) and the new sync center. So my cellphone is happy, althougha recent battery purchase for that on PayPal was the culprit. The guy said he will exchange the battery I spent like $25 on, so I hope that pushes through and the next one actually works (Confused yet? Well it seems it is always a long story with me.. )
Lots of good things this week, too numerous to mention: a potential job offer with a federal agency came through, a credit line increas eand a new video card, my womans new portable dvd player was able to be de-region-one'd, and I got the car cleaned quite nicely at the car wash. Amongst a pethora of other little things. Hi ho, hi ho, off to work I go..
Well, that's about it for now.
-E-
3月5日 GridView Ramblings..I'm working on a web client application for a retailer, and implementing the new Web Client Software Factory architecture with the Enterprise Library Application Blocks. This has been both fun and exciting for me, as a DotNetJunkie that I am.
Just a quick snippet, ported from Thomas' VB blog posting, for adding a Sort Direction indicator to your own GridViews'. Simply call the method from your Grid's OnSorting method and voila, you have webdings indicators. (Remember to set the HTMLEncoding=false on the BoundFields you have your SortDirection set. Quick and simple. ;)
public static void AppendSortOrderImageToGridHeader(SortDirection sortDir, string sortExpr, ref GridView grid) { int foundColumnIndex = -1; int colCount = grid.Columns.Count - 1; for (int i = 0; i <= colCount; i++) { grid.Columns[i].HeaderText = grid.Columns[i].HeaderText.Replace("<span style='font-family: Webdings; '> 5</span>", string.Empty); grid.Columns[i].HeaderText = grid.Columns[i].HeaderText.Replace("<span style='font-family: Webdings; '> 6</span>", string.Empty); if (sortExpr == grid.Columns[i].SortExpression) { foundColumnIndex = i; } } if (foundColumnIndex > -1) { DataControlField dcField; if (sortDir == SortDirection.Ascending) { dcField = grid.Columns[foundColumnIndex]; dcField.HeaderText = dcField.HeaderText + "<span style='font-family: Webdings; '> 5</span>"; } else { dcField = grid.Columns[foundColumnIndex]; dcField.HeaderText = dcField.HeaderText + "<span style='font-family: Webdings; '> 6</span>"; } } } |
|
|