Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default Datagrid Formatting

    I am trying to find out if it is possible to format a datagrid to
    display results in teh following manner;

    Job: 5453 South Ridge Lane Contract: CINERGY 2005
    Claim # Date of Loss Claimant
    20052254 09/23/2005 Edward Johnson

    Basically data for a job is selected using a stored procedure and I
    want to disply it as shown above by using the datagrid witn
    TemplateColumns and ItemTemplate.

    Is this possible? If anyone know if this can be done or how to do it I
    would very much appreciate some assistance.

    Thanks,

    jmawebco

    jmawebco Guest

  2. Similar Questions and Discussions

    1. datagrid text formatting
      Using a webserviceConnector, dataSet, and dataGrid i've pulled in data from a CFC that queries my database... finally after a few hours of studying...
    2. Formatting a datagrid
      Hi, I am working on my first web app that uses a datagrid. I can't seem to find good examples of formatting the grid the way you can in a Windows...
    3. Formatting a datagrid in a web form
      Hi All :-) I'm trying to format a VB.Net datagrid for a Web form in the code behind. Do I have to create a custom style like you do for the...
    4. formatting the data in a datagrid
      Hello, I wish to format the data in one of the columns of a datagrid so that it does not display more than 3 decimal places. I have a datagrid...
    5. Print asp:datagrid with formatting
      Hi I need to Print asp:datagrid with formatting, which will avoid my writing of crystal reports and can directly print with click of a button. ...
  3. #2

    Default Re: Datagrid Formatting

    jmawebco,
    You should be able to use a DataList for that
    Patrick

    "jmawebco" <jaime.cruz@infrasourceinc.com> wrote in message
    news:1132169995.881105.100690@g14g2000cwa.googlegr oups.com...
    > I am trying to find out if it is possible to format a datagrid to
    > display results in teh following manner;
    >
    > Job: 5453 South Ridge Lane Contract: CINERGY 2005
    > Claim # Date of Loss Claimant
    > 20052254 09/23/2005 Edward Johnson
    >
    > Basically data for a job is selected using a stored procedure and I
    > want to disply it as shown above by using the datagrid witn
    > TemplateColumns and ItemTemplate.
    >
    > Is this possible? If anyone know if this can be done or how to do it I
    > would very much appreciate some assistance.
    >
    > Thanks,
    >
    > jmawebco
    >

    Patrick.O.Ige Guest

  4. #3

    Default Re: Datagrid Formatting

    For the date to be formatted correctly you have to set the htmlEncode to
    false:

    <asp:BoundField DataField="DateOfBirth" DataFormatString="{0:MM/dd/yyyy}"
    HtmlEncode="false"/>

    Hope this helps

    Patrick.O.Ige wrote:
    >jmawebco,
    > You should be able to use a DataList for that
    >Patrick
    >
    >> I am trying to find out if it is possible to format a datagrid to
    >> display results in teh following manner;
    >[quoted text clipped - 13 lines]
    >>
    >> jmawebco
    --
    Brian Hammil
    "Peace for Life.....Natrual Spring...."
    After the several shots of Tequila it
    sounded profound!
    Brian Hammil Guest

  5. #4

    Default Re: Datagrid Formatting

    Whoops right solution for the wrong post, sorry.

    Brian Hammil wrote:
    >For the date to be formatted correctly you have to set the htmlEncode to
    >false:
    >
    ><asp:BoundField DataField="DateOfBirth" DataFormatString="{0:MM/dd/yyyy}"
    >HtmlEncode="false"/>
    >
    >Hope this helps
    >
    >>jmawebco,
    >> You should be able to use a DataList for that
    >[quoted text clipped - 5 lines]
    >>>
    >>> jmawebco
    >
    --
    Brian Hammil
    "Peace for Life.....Natrual Spring...."
    After the several shots of Tequila it
    sounded profound!
    Brian Hammil Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139