Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How can we add dynamic control to Data table

How can we add dynamic control to Data table

Scheduled Pinned Locked Moved ASP.NET
designquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jain Vijay
    wrote on last edited by
    #1

    Hi, I am trying to add dynamic link button to data table. But get an full link class name.i.e.
    System.Web.UI.WebControls.LinkButton
    can any one tell me the way to do this?
    Here is my code:
    Dim dt As New DataTable() Dim dr As DataRow dt.Columns.Add("EventDate", Type.[GetType]("System.DateTime")) dt.Columns.Add("EventHeader", Type.[GetType]("System.String")) Dim lnk As New LinkButton lnk.ID = InteractionClickId lnk.Text = objDal.Name dr = dt.NewRow() dr("EventDate") = objDal.Date1 dr("EventHeader") = lnk dt.Rows.Add(dr)

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    C 1 Reply Last reply
    0
    • J Jain Vijay

      Hi, I am trying to add dynamic link button to data table. But get an full link class name.i.e.
      System.Web.UI.WebControls.LinkButton
      can any one tell me the way to do this?
      Here is my code:
      Dim dt As New DataTable() Dim dr As DataRow dt.Columns.Add("EventDate", Type.[GetType]("System.DateTime")) dt.Columns.Add("EventHeader", Type.[GetType]("System.String")) Dim lnk As New LinkButton lnk.ID = InteractionClickId lnk.Text = objDal.Name dr = dt.NewRow() dr("EventDate") = objDal.Date1 dr("EventHeader") = lnk dt.Rows.Add(dr)

      Regards... Vijay Jain :)

      "One thing you can't recycle is wasted time."

      C Offline
      C Offline
      Coding C
      wrote on last edited by
      #2

      I haven't tried but don't this is possible. What you want to achieve? And we normally add controls to the page.

      Coding C# ExciteTemplate

      J 1 Reply Last reply
      0
      • C Coding C

        I haven't tried but don't this is possible. What you want to achieve? And we normally add controls to the page.

        Coding C# ExciteTemplate

        J Offline
        J Offline
        Jain Vijay
        wrote on last edited by
        #3

        I m trying to use a modal popup extender, dynamically in my code in event calendar. And event calendar is a 3rd party tool, I only have dll for that. So I have to paas all data in data table to add in event calendar. That's why I m trying to do this.

        Regards... Vijay Jain :)

        "One thing you can't recycle is wasted time."

        C 1 Reply Last reply
        0
        • J Jain Vijay

          I m trying to use a modal popup extender, dynamically in my code in event calendar. And event calendar is a 3rd party tool, I only have dll for that. So I have to paas all data in data table to add in event calendar. That's why I m trying to do this.

          Regards... Vijay Jain :)

          "One thing you can't recycle is wasted time."

          C Offline
          C Offline
          Coding C
          wrote on last edited by
          #4

          That event calendar control should have some databinding event? You can handle that event and then use it to add controls to it. HTH

          Coding C# ExciteTemplate

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups