in

ASP.NET Weblogs

Datagrid Girl

Marcie, ASP.NET Datagrid Blogger Girl

April 2003 - Posts

  • DGG at ASP Connections!

    Well as of today, it looks like I'll be in New Orleans next week at ASP.NET Connections (how's that for last minute planning??).  If any of you are going, please come up to me and say "Hi!".  I'll be the girl wearing pink and purple, and handing out free buttons that say DatagridGirl.com.  I should be fairly easy to spot :)

    DGG

  • Datagrids Suck!

    I'm always telling everyone why I love Datagrids, but today let's air some "Datagrid dirty laundry".  Here are some reasons why Datagrids suck:

    1) Dealing with ViewState and Datagrids is also a big hassle.  I mean, why is the ViewState for a page with a Datagrid so ridiculously large?  And if all the data's in there (ViewState), why can't we get it back out again after a postback?  And why does disabling the ViewState for a Datagrid make working with events such a pain?

    2) If this thing (Datagrid) is generating HTML table tags, where are my TBODY, TH, THEAD, TFOOT elements??

    3) Datagrid accessibility stinks, just try checking the HTML of a page with an ASP.NET Datagrid in your favorite accessibility validator.  See above.

    4) Then there's that HeaderStyle-Wrap bug, definitely spent some time wrestling with that one.

    5) Also in the semi-bug category, there's the whole "leaving secure connection" SSL thing.

    Write me and tell me the things you hate about the Datagrid!
    Datagrid Girl

  • Tablet PC Power Toys

    I got to travel this past weekend for the first time with my new Tablet PC ("porty" the Portege), so I asked around to see if there were any crossword puzzle apps for the Tablet that would let you write on the screen. Sure enough, Terri Morton pointed me to the Tablet PC Power Toys page, where I found not only my crosswords, but also some other fun tools like a music composition thingy, and a "snipping" tool where you snip sections off the screen and can write on them and email them.  Lots of fun stuff there, I only wish I had time to play with all the cool toys.  If anybody has any particular favorites I should check out (or other neat Tablet stuff), let me know!

    Datagrid Girl

    P.S.  Terri, you should do a weblog--we need more smart dotnetty girls here.

  • Blogtiquette

    I just found Drew's blog, and where he talks a lot about blogging community:

    "The idea of linear threads as you see in forums doesn't make sense to me in the blogging domain. Interlinking and adding editorial comments does make sense in blogging. However, someone should be able to visit a blog as if it’s a personal website and not need some other context to understand a post. Advice to bloggers: think of each post as an article posted to your website, not a reply in a conversation."

    Well said, Drew! Everybody else here at DNWL--go read the rest of what he had to say.

    Datagrid Girl

  • VS.NET Likes & Dislikes

    Those who know me very well professionally (or who go to my User Group presentations), know that I code everything in TextPad. But, I generally use whatever my clients are using, so I have used VS.NET some in the past.  This week I was working closely with two different clients who use it (VS), so I spent a lot of time in it.

    Likes:

    • Press "Play" to run the app.  That's cool, saves me having to go type in the URL.
    • Intellisense (most of the time).  Other times it just irritates me.
    • I almost really liked the Datagrid Property Builder, but there are a couple of obvious things that could improved.  For one, when you convert a column to a TemplateColumn, or work with any columns that already are TemplateColumns, the Edit Template option should be right there (duh).
    • Database Server Explorer thingy.  Handy.
    • Automatic generation of proxies for consuming web services.
    • I'm actually indifferent to debugging, I'm so accustomed to using Trace for debug information.
    • I'm also indifferent to codebehind, I don't really care whether my script is in the same file as my HTML, or whether it's separate.

    Dislikes:

    • All the boxes of "stuff" around my code.  I did VB 5 and 6 for about 5 years, so I'm used to the IDE, but TextPad has spoiled me into wanting my coding area maximized.  Particularly since I write more than half of my code on a small laptop screen, I want/need this space.
    • The database code VS generates.  Ugh.
    • "Messing with" my HTML code.  Even when you turn off all the formatting options, there are still some strange things going on here.
    • Kinda slow.  (This is VS.NET 2002 I'm working with, haven't tried 2003)
    • AutoEventWireup = "False".  I like AutoEventWireup, don't default it the other way, please.
    • Front Page Server Extensions (FPSE)
    • Any kind of wizard that generates code for me.  I'm too picky, don't even try :)
    • The HTML code generated not being XHTML compliant--this makes me insane!!!
    • Absolute positioning (GridLayout) by default.  Just a personal preference, but I don't like this.

    Happy Datagridding!

  • ASP.NET vs. Cold Fusion

    I've been gathering research over the last couple of days for one of my clients on ASP.NET vs. Cold Fusion. Here are a few of the more interesting links I've found (or been sent) so far:

    ComputerJobs.com Case Study

    ColdFusion Overview
    ColdFusion Comparison Guide

    Thanks to Alex Lowe and Kent Sharkey who sent me some very useful material.  Several other people shared their personal experiences with ColdFusion and insights that help my arguments as well--I'll try to summarize these in a future entry.

    Datagrid Girl

  • Datagrid to Excel Formatting Tip

    When I signed up for a blog account here, I thought all my entries would be about Datagrids. But I've been neglecting what is really my favorite topic, so tonight I'll share a fantastic tip that came to me today from a visitor to my site, Jim Cristofono.

    I've been doing a lot recently with Datagrids and Excel, and Jim and I have corresponded on this topic a bit. One limitation (or so I thought), of using the RenderControl method to export a Datagrid to Excel is that you have little or no control over the formatting once the data gets to Excel. For instance, large numbers get converted to the (ugly) x.xxxxxxE-yy syntax.

    Jim came up with an super clever workaround for this problem--code below:

    Response.Cache.SetExpires(DateTime.Now.AddSeconds(1));
    Response.ContentType = "application/vnd.ms-excel";
    Response.Charset = "";
    this.EnableViewState = false;
    Response.Write("<html
    xmlns:x=\"urn:schemas-microsoft-com:office:excel\">");
    Response.Write("\r\n");
    Response.Write("<style>  .mystyle1 " + "\r\n" + "
    {mso-style-parent:style0;mso-number-format:\""+@"\@"+"\""+";} " +
    "\r\n" +
    "</style>");
    StringWriter tw = new StringWriter();
    HtmlTextWriter hw = new HtmlTextWriter(tw);
    DataGrid1.RenderControl(hw);
    Response.AppendHeader
    ("content-disposition","attachment;filename=x.xls");
    Response.Write(tw.ToString());
    Response.End();
    private void DataGrid1_ItemCreated(object sender,
    System.Web.UI.WebControls.DataGridItemEventArgs e)
    {
    int i=0;
    if (e.Item.ItemType == ListItemType.Item | e.Item.ItemType ==
    ListItemType.AlternatingItem)
       {
       foreach (cRecordTemplate MyRec in arrRec)
        {
        if (MyRec.FieldType=="dbChar")
           e.Item.Cells[i].Attributes.Add("class", "mystyle1");
        i++;
        }
       }
    }

    Happy Datagridding!
  • SharpReader Saturday

    Well, I finally got on the bandwagon today and started using SharpReader to keep up with all the different Blog feeds. In reference to the recent "Future" thread, I do read each and every post that comes across the front page, so please keep everything in the main feed (or at least, offer a feed that has everything). I would like to see someone put up a "Best of DotNetWebLogs" page, with links to all the posts that people would really want to refer back to in the future. I enjoy the conversational threads we have on here, but I'd like to see a separate archive of the posts that really stand the test of time.

    Back to SharpReader.  I'd been putting off downloading it because I knew I was about to change primary machines (old laptop --> new Tablet!).  I really like SharpReader so far, though I'm not fond of the Preview Pane which you seem to have to use to view the messages.  I don't use the Preview Pane in Outlook or Outlook Express, and wasn't able to find an option to turn it off in SharpReader.

    Datagrid Girl

    P.S.  I had an interesting potential client email me yesterday from Norway, but each time I tried to reply to the email I got a "delivery failure".  The guy said that he reads my blog, so if you see this (you know who you are), write me again with a different address I can reply to.  Thanks!

  • And then there were 4.

    Just wanted to give a quick Welcome! to my friend Rachel Reese who is now blogging with us. Ask her about "Web Clippy"...

    Datagrid Girl

    P.S.  This is my first blog from my new Tablet PC--the Toshiba Portege--whom I affectionately call "Porty".

  • Gettin' a Tablet PC!

    I've decided, I'm going to go pick it up today. After my comments on Sunday, Roy commented:

    I want one! but in israel they cost pretty much like small cars... ;(

    Well, they do here too Roy--my first car cost a lot less than this thing, but hey, it's worth it.  I need to replace my laptop anyway, and the Tablet feature is damn cool--will be very handy for meetings and at conferences.  Heading to CompUSA after work to pick up, will share thoughts tomorrow!

    A Gadget-frenzied Datagrid Girl

More Posts Next page »