Results 1 to 2 of 2

Thread: Include column to GridView Programmatically

  1. #1
    CruzPowell is offline Senior Member
    Join Date
    Dec 2009
    Posts
    224
    Rep Power
    3

    Default Include column to GridView Programmatically

    I am trying to add template field to an ASP.NET GridView control using C# programmatically. I had column with template which contain check box. The JavaScript is activating on the row when I click on that check box. Is another way to do this by dynamic method?

  2. #2
    FosterWood is offline Senior Member
    Join Date
    Dec 2009
    Posts
    215
    Rep Power
    3

    Default

    Try the following code which is given below.

    Code:
    <asp:TemplateField >
    <ItemTemplate>
    <asp:CheckBox ID="chk_NotifierAdd" runat="server"/>
    </ItemTemplate>
    </asp:TemplateField>

Similar Threads

  1. Bind a GridView Control to XML
    By BrooksGray in forum other peripherals
    Replies: 2
    Last Post: 07-28-2010, 02:36 PM
  2. How to bind gridview in asp.net
    By AdamsClark in forum other peripherals
    Replies: 2
    Last Post: 07-04-2010, 02:01 PM
  3. Bind gridview using code
    By ThomasBarnes in forum Programming
    Replies: 1
    Last Post: 04-29-2010, 01:37 PM
  4. new column in datagrid
    By MartinWilson in forum Programming
    Replies: 1
    Last Post: 02-17-2010, 05:37 PM
  5. Add a smart column
    By fimanson in forum Everything Else
    Replies: 0
    Last Post: 06-23-2008, 03:41 PM

Bookmarks

Posting Permissions

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

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