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. Special Row in Grid

Special Row in Grid

Scheduled Pinned Locked Moved ASP.NET
cssquestion
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.
  • N Offline
    N Offline
    Nimua
    wrote on last edited by
    #1

    Hello! If have grid for edit settings for providers, 1 row for each provider, there is a template with 2 textbox, but I have one provider that need another number of settings, how I can change the controls in template in runtime, after databind?

    T 1 Reply Last reply
    0
    • N Nimua

      Hello! If have grid for edit settings for providers, 1 row for each provider, there is a template with 2 textbox, but I have one provider that need another number of settings, how I can change the controls in template in runtime, after databind?

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      Change the column to a template column. Put two panels in the template. On the OnRowDataBound protected void gridRowBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e) { // Updatae Items if (e.Row.RowType == DataControlRowType.DataRow) { PanelA = (Panel) e.Row.FindControl("PanelA"); PanelB = (Panel)e.Row.FindControl("PanelB"); //Put your logic to display the panel based on the data item } }

      I didn't get any requirements for the signature

      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