<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>http://www.cocomment.com/blog/205803</id>
    <title>coComments related to Peter&amp;#39;s Software House</title>
    <link rel="self" href="http://www.cocomment.com/blog/205803"/>
    <rights>Copyright 2007 coComment.com</rights>
    <updated>2009-11-24T01:37:54.055+01:00</updated>
    <icon>http://www.cocomment.com/images/logo4rss.gif</icon>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2444863&amp;comment_id=136471687</id>
        <title>Thanks... very good...

Regard</title>
        <author>
            <name>Juan</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2444863&amp;comment_id=136471687"/>
        <content>Thanks... very good...

Regards...</content>
        <published>2009-10-30T16:50:53.974+01:00</published>
        <updated>2009-10-30T16:50:53.974+01:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2584695&amp;comment_id=133104758</id>
        <title>I've tryed the implementation </title>
        <author>
            <name>Manuel</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2584695&amp;comment_id=133104758"/>
        <content>I've tryed the implementation you suggested with my custom class, but it always gives me an error on the cast:

SecurityPrincipal principal = (SecurityPrincipal)HttpContext.Current.User;

Exception: Cannot associate the objet of type System.Security.Principal.WindowsPrinciap to type 'xxx.Utilities.Security.Web.SecurityPrincipal'.

Am i doing something wrong?

Best regards,
Manuel</content>
        <published>2009-10-07T18:52:44.257+02:00</published>
        <updated>2009-10-07T18:52:44.257+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=131759462</id>
        <title>@Pete
I use SnagIt from TechSm</title>
        <author>
            <name>Pieter</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=131759462"/>
        <content>@Pete
I use SnagIt from TechSmith</content>
        <published>2009-10-01T01:48:59.424+02:00</published>
        <updated>2009-10-01T01:48:59.424+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2568054&amp;comment_id=131756001</id>
        <title>@Philip - Get over yourselve!
</title>
        <author>
            <name>Pieter</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2568054&amp;comment_id=131756001"/>
        <content>@Philip - Get over yourselve!
I post for my own pleasure and to share what I find.  The fact that I don't have the time to respond to every comment placed on my blog doesn't seem to concern you.  And the fact that spammers create thousands of comments, making it damn near impossible for me to make the time to wade through all the comments trying to find the legitimate comments.
I don't edit or moderate any ligitimate comment that I do find... So yea, get a life!</content>
        <published>2009-10-01T01:29:57.821+02:00</published>
        <updated>2009-10-01T01:29:57.821+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2550344&amp;comment_id=131514476</id>
        <title>Wow.. Its working.. Thanks for</title>
        <author>
            <name>Cygnet-Infotech</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2550344&amp;comment_id=131514476"/>
        <content>Wow.. Its working.. Thanks for sharing us this much useful information....</content>
        <published>2009-09-29T20:49:05.710+02:00</published>
        <updated>2009-09-29T20:49:05.710+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2581099&amp;comment_id=131510221</id>
        <title>thank u for sharing this info.</title>
        <author>
            <name>Dot Net development</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2581099&amp;comment_id=131510221"/>
        <content>thank u for sharing this info.. its such an informative blog..</content>
        <published>2009-09-29T20:20:10.580+02:00</published>
        <updated>2009-09-29T20:20:10.580+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2580349&amp;comment_id=131172857</id>
        <title>Anhy updates on this sample?  </title>
        <author>
            <name>Bob Thomas</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2580349&amp;comment_id=131172857"/>
        <content>Anhy updates on this sample?  Looks promising...  Thanks.</content>
        <published>2009-09-28T06:46:32.477+02:00</published>
        <updated>2009-09-28T06:46:32.477+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=128376526</id>
        <title>Is it possible to change Domai</title>
        <author>
            <name>u2envy1</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=128376526"/>
        <content>Is it possible to change DomainObject to an Ilist ?</content>
        <published>2009-09-14T14:32:42.425+02:00</published>
        <updated>2009-09-14T14:32:42.425+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2570395&amp;comment_id=125759164</id>
        <title>It is pretty well known that t</title>
        <author>
            <name>Kenny Goers</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2570395&amp;comment_id=125759164"/>
        <content>It is pretty well known that this works, the only problem being is that it can cause problems serving up static files and asd it wasn't intended to do this, there is a performance hit in forcing all file handling through ASP.NET.

Caveat Emptor</content>
        <published>2009-09-04T15:49:48.700+02:00</published>
        <updated>2009-09-04T15:49:48.700+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2568054&amp;comment_id=125668827</id>
        <title>Hello Pieter,

Seems I wasted </title>
        <author>
            <name>Philip</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2568054&amp;comment_id=125668827"/>
        <content>Hello Pieter,

Seems I wasted my time to respond to this blog post before.  

That is sad.  One spends time to read, understand and respond.  Yet when engaging in the post and not deemed favourable by the author it is simply ignored.

I won't waste any further time on this blog.
At least save the next traveller some time and make your comments read-only...</content>
        <published>2009-09-04T06:32:16.504+02:00</published>
        <updated>2009-09-04T06:32:16.504+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2568054&amp;comment_id=124400370</id>
        <title>Nice. I'm looking forward to t</title>
        <author>
            <name>CalmYourself</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2568054&amp;comment_id=124400370"/>
        <content>Nice. I'm looking forward to the ORM post.</content>
        <published>2009-08-31T07:16:51.758+02:00</published>
        <updated>2009-08-31T07:16:51.758+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2568054&amp;comment_id=124242141</id>
        <title>Hello Pieter,

You lost me wit</title>
        <author>
            <name>Philip</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2568054&amp;comment_id=124242141"/>
        <content>Hello Pieter,

You lost me with this article.  Let me explain what confused me:

1. My understanding of Magic Numbers is the same as explained in the Wikipedia article you quoted. But this very much in contrast with that of a property on a class .  Magic numbers are very useful to identify the possible format for a given binary format - for example serving as file identifiers (The hex CAFEBABE for Java class files being a beautiful example). I guess one can argue 'C' is a random value but not a 'magic' number/value in my opinion.

2. That said I understand the problem you trying to solve.  Using a single character 'C' to describe a state is not self-describing.  Won't the use of a enumerated type solve the same problem and be much simpler?</content>
        <published>2009-08-30T12:59:57.061+02:00</published>
        <updated>2009-08-30T12:59:57.061+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2550344&amp;comment_id=120548701</id>
        <title>One person's solution is anoth</title>
        <author>
            <name>Mark Nicholson</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2550344&amp;comment_id=120548701"/>
        <content>One person's solution is another's WTF. To me your code is a WTF.

.NET already supports that format -- it is a variant of the ISO8601 format family. All you have to specify in the format string is "s".

DateTime.Now.ToString("s"/*yyyy-MM-ddTHH:mm:ss*/);</content>
        <published>2009-07-27T07:53:15.999+02:00</published>
        <updated>2009-07-27T07:53:15.999+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2550344&amp;comment_id=120347344</id>
        <title>As a further improvement you s</title>
        <author>
            <name>codingsanity</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2550344&amp;comment_id=120347344"/>
        <content>As a further improvement you should use CultureInfo.DateTimeFormat.ShortDatePattern and CultureInfo.DateTimeFormat.ShortTimePattern if possible</content>
        <published>2009-07-24T06:09:30.186+02:00</published>
        <updated>2009-07-24T06:09:30.186+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=117986651</id>
        <title>Hi,

Your helper is very usefu</title>
        <author>
            <name>Nigo</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=117986651"/>
        <content>Hi,

Your helper is very useful ! Thanks !

I found a little bug in the method :
public static L GetSelectedRows&amp;lt;L, D&amp;gt;(ColumnView gridView)
the line
D detail = gridView.GetRow(selectedRows[rowIndex]) as D;
must be replace by
D detail = gridView.GetRow(rowIndex) as D;

	
Am I correct ?

(I use dev express 8.3)

Hope it helps.</content>
        <published>2009-07-13T16:43:49.668+02:00</published>
        <updated>2009-07-13T16:43:49.668+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=108449640</id>
        <title>What about Array.ForEach()?</title>
        <author>
            <name>Pieter</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=108449640"/>
        <content>What about Array.ForEach()?</content>
        <published>2009-06-17T23:22:12.065+02:00</published>
        <updated>2009-06-17T23:22:12.065+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=108317229</id>
        <title>My opinion is either do a full</title>
        <author>
            <name>Ramon Smits</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=108317229"/>
        <content>My opinion is either do a full one-liner or format all with curlies. Both are just as easy to read on large screens.</content>
        <published>2009-06-17T15:10:20.203+02:00</published>
        <updated>2009-06-17T15:10:20.203+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=108220901</id>
        <title>I'll keep the if curlies, but </title>
        <author>
            <name>Agutator</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=108220901"/>
        <content>I'll keep the if curlies, but will drop the foreach curlies. Makes it cleaner and more readable.</content>
        <published>2009-06-17T08:37:01.391+02:00</published>
        <updated>2009-06-17T08:37:01.391+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=108205585</id>
        <title>How do you create these nice t</title>
        <author>
            <name>Pete</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=108205585"/>
        <content>How do you create these nice torn paper screenshots?</content>
        <published>2009-06-17T08:04:33.702+02:00</published>
        <updated>2009-06-17T08:04:33.702+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=108184973</id>
        <title>Yeah, but I do prefer not havi</title>
        <author>
            <name>codingsanity</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2524864&amp;comment_id=108184973"/>
        <content>Yeah, but I do prefer not having the curlies for single line statements. Just think it looks less busy.</content>
        <published>2009-06-17T07:09:46.740+02:00</published>
        <updated>2009-06-17T07:09:46.740+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=82956011</id>
        <title>There is an problem in of the </title>
        <author>
            <name>Alfred</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=82956011"/>
        <content>There is an problem in of the functions I think:

public static L GetSelectedRows&amp;lt;L, D&amp;gt;(ColumnView gridView)

D detail = gridView.GetRow(selectedRows[rowIndex]) as D;

should be

D detail = gridView.GetRow(rowIndex) as D;</content>
        <published>2009-04-24T15:21:38.235+02:00</published>
        <updated>2009-04-24T15:21:38.235+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2444863&amp;comment_id=77427711</id>
        <title>Muito bom, obrigado.</title>
        <author>
            <name>Ricardo</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2444863&amp;comment_id=77427711"/>
        <content>Muito bom, obrigado.</content>
        <published>2009-04-14T12:24:11.800+02:00</published>
        <updated>2009-04-14T12:24:11.800+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=65153691</id>
        <title>This is very useful and worked</title>
        <author>
            <name>raffaeu</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=65153691"/>
        <content>This is very useful and worked perfect for me. Now I'm going to extend your helper with some more methods also to implement the SelectItem that doesn't exist in the GridView of devexpress.
The problem is that the only method available is SelectRow(int) and I work with entities ... so is not easy to match the correct index of my custom list ... ;)</content>
        <published>2009-03-12T20:24:09.644+01:00</published>
        <updated>2009-03-12T20:24:09.644+01:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=64986972</id>
        <title>In method 
 public static L Ge</title>
        <author>
            <name>Leszek</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=64986972"/>
        <content>In method 
 public static L GetSelectedRows&amp;lt;L,D&amp;gt;(ColumnView gridView)
is bug 
	
instead 
D detail = GridView.GetRow(selectedRows[rowIndex]) as D;
should be 
D detail = GridView.GetRow(rowIndex) as D;</content>
        <published>2009-03-12T01:47:56.152+01:00</published>
        <updated>2009-03-12T01:47:56.152+01:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2444863&amp;comment_id=64572250</id>
        <title>I tried to do that in exactly </title>
        <author>
            <name>Microsoft.NET development</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=2444863&amp;comment_id=64572250"/>
        <content>I tried to do that in exactly same way. But its not working....</content>
        <published>2009-03-10T09:49:15.274+01:00</published>
        <updated>2009-03-10T09:49:15.274+01:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=26851370</id>
        <title>Travis, you should read the po</title>
        <author>
            <name>Pieter</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=26851370"/>
        <content>Travis, you should read the post bud: (NB!! You will have to change the DomainObject to a base class or interface of your choice or remove it to get it to work for you)</content>
        <published>2008-05-28T10:24:02.140+02:00</published>
        <updated>2008-05-28T10:24:02.140+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=26851265</id>
        <title>Hey Travis, the DomainObject s</title>
        <author>
            <name>Pieter</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=26851265"/>
        <content>Hey Travis, the DomainObject should not be there, left over from a project I worked on.</content>
        <published>2008-05-28T10:19:07.507+02:00</published>
        <updated>2008-05-28T10:19:07.507+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=25197161</id>
        <title>what is DomainObject I convert</title>
        <author>
            <name>Travis</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?context=explore&amp;object=sites&amp;mode=detail&amp;id=205803&amp;conv=1330397&amp;comment_id=25197161"/>
        <content>what is DomainObject I converted the helper class to vb.net and I get a an undeclared error on this object. Do i need to import some reference or something?</content>
        <published>2008-04-02T23:17:04.313+02:00</published>
        <updated>2008-04-02T23:17:04.313+02:00</updated>
    </entry>
</feed>
