Grid Control

Discussion in 'ASP .Net Web Controls' started by Reetu, Jul 16, 2003.

  1. Reetu

    Reetu Guest

    Hi,

    I want to convert the following HTML code to C#.Net code
    to add this column dynamically to datagrid. How do I do it?

    <asp:TemplateColumn HeaderText="Name" HeaderStyle-
    Width="200px">
    <ItemTemplate>
    <%# GetProcInstName(Container.DataItem) %>
    </ItemTemplate>
    </asp:TemplateColumn>

    I would be glad to get some links or article which
    explains dynamically adding template column to datagrid.

    Thanks & Regards,
    -Reetu
    Reetu, Jul 16, 2003
    #1
    1. Advertising

  2. Hi Reetu,

    Check out the following msdn article.

    http://msdn.microsoft.com/library/default.asp?
    url=/library/en-
    us/vbcon/html/vbtskcreatingtemplatesprogrammaticallyindata
    gridcontrol.asp


    HTH
    Ravikanth


    >-----Original Message-----
    >Hi,
    >
    >I want to convert the following HTML code to C#.Net code
    >to add this column dynamically to datagrid. How do I do

    it?
    >
    ><asp:TemplateColumn HeaderText="Name" HeaderStyle-
    >Width="200px">
    > <ItemTemplate>
    > <%# GetProcInstName(Container.DataItem) %>
    > </ItemTemplate>
    ></asp:TemplateColumn>
    >
    >I would be glad to get some links or article which
    >explains dynamically adding template column to datagrid.
    >
    >Thanks & Regards,
    >-Reetu
    >
    >.
    >
    Ravikanth[MVP], Jul 16, 2003
    #2
    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. Girish
    Replies:
    4
    Views:
    667
    Patrick.O.Ige
    Jul 19, 2005
  2. =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?=

    How to transfer a value from an Invisible Grid to an visible Grid

    =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?=, Oct 13, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    464
    =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?=
    Oct 17, 2005
  3. Danny Tuppeny

    Grouped grid? Or grid within datalist?

    Danny Tuppeny, Oct 27, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    495
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    Oct 27, 2005
  4. Marc
    Replies:
    0
    Views:
    450
  5. Simon L
    Replies:
    3
    Views:
    403
    Jeff Flinn
    Mar 31, 2006
Loading...

Share This Page