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 to create dynamic column........

How to create dynamic column........

Scheduled Pinned Locked Moved ASP.NET
helpcsstutorial
2 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.
  • V Offline
    V Offline
    V K Singh
    wrote on last edited by
    #1

    big>Hi there! While doing a project I got struck at a problem.... I have to create a grid view in which i have to generate dynamic rows and dynamic column. I m able to generate the rows but m not able to generate column. I have to edit that column also........... can any one help me to solve the problem...... :)

    Thanks & regard Vikash Kumar Singh

    S 1 Reply Last reply
    0
    • V V K Singh

      big>Hi there! While doing a project I got struck at a problem.... I have to create a grid view in which i have to generate dynamic rows and dynamic column. I m able to generate the rows but m not able to generate column. I have to edit that column also........... can any one help me to solve the problem...... :)

      Thanks & regard Vikash Kumar Singh

      S Offline
      S Offline
      ShruthiLavan
      wrote on last edited by
      #2

      create an instance of field type that you want to add in your gridview. For eg,If you want to create a buttonfield, create an instance of buttonfield. Dim col1 As New ButtonField Next set the basic properties for that instance. col1.HeaderText = "ButtonColumn" col1.ButtonType = ButtonType.Button col1.Text = "Click" Add that instance to your gridview GridView1.Columns.Add(col1) with regards, lavanya

      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