Alignment problem in the datagrid

Discussion in 'ASP .Net' started by Vannela, Dec 15, 2003.

  1. Vannela

    Vannela Guest

    I want the textboxes to be aligned vertically in the
    header template of the datagrid ? how is it possible
    Please give me some code snippets.

    Thank you
    Vannela, Dec 15, 2003
    #1
    1. Advertising

  2. Vannela wrote:
    > I want the textboxes to be aligned vertically in the
    > header template of the datagrid ? how is it possible
    > Please give me some code snippets.
    >


    Why are you putting textboxes in the header Template?

    You can always use a HTML Table to position the textboxes
    <HeaderTemplate>
    <table border="0" cellpadding="0" cellpadding="0">
    <tr>
    <td>
    <asp:TextBox id="TextBox1" runat="server" />
    </td>
    </tr>
    <tr>
    <td>
    <asp:TextBox id="Textbox2" runat="server" />
    </td>
    </tr>
    </table>
    </HeaderTemplate>

    --

    Thanks,
    Carl Prothman
    Microsoft ASP.NET MVP
    http://www.able-consulting.com
    Carl Prothman [MVP], Dec 15, 2003
    #2
    1. Advertising

  3. Vannela

    Vannela Guest

    Thank you

    Thanks you

    >-----Original Message-----
    >Vannela wrote:
    >> I want the textboxes to be aligned vertically in the
    >> header template of the datagrid ? how is it possible
    >> Please give me some code snippets.
    >>

    >
    >Why are you putting textboxes in the header Template?
    >
    >You can always use a HTML Table to position the textboxes
    > <HeaderTemplate>
    > <table border="0" cellpadding="0" cellpadding="0">
    > <tr>
    > <td>
    > <asp:TextBox id="TextBox1" runat="server" />
    > </td>
    > </tr>
    > <tr>
    > <td>
    > <asp:TextBox id="Textbox2" runat="server" />
    > </td>
    > </tr>
    > </table>
    > </HeaderTemplate>
    >
    >--
    >
    >Thanks,
    >Carl Prothman
    >Microsoft ASP.NET MVP
    >http://www.able-consulting.com
    >
    >
    >
    >.
    >
    Vannela, Dec 16, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chumley Walrus
    Replies:
    1
    Views:
    2,889
    =?Utf-8?B?SmFzb24gTCBMaW5k?=
    Jun 8, 2005
  2. Arpan

    Text Alignment In DataGrid?

    Arpan, Aug 31, 2006, in forum: ASP .Net
    Replies:
    7
    Views:
    460
    John Timney \(MVP\)
    Sep 1, 2006
  3. Replies:
    6
    Views:
    957
    Gozirra
    Nov 30, 2006
  4. Mtmartin71
    Replies:
    9
    Views:
    819
    Adrienne Boswell
    Aug 28, 2007
  5. Deep Silent Ocean

    Different header and text alignment in winform datagrid ??

    Deep Silent Ocean, Sep 30, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    160
    Deep Silent Ocean
    Sep 30, 2005
Loading...

Share This Page