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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Update GridView on Runtime?

Update GridView on Runtime?

Scheduled Pinned Locked Moved ASP.NET
helpquestionannouncement
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.
  • B Offline
    B Offline
    Biju Sam
    wrote on last edited by
    #1

    Hi All, I want to change the UpdateText of a CommandField(Edit) on runtime in GridView. For eg: Now my defalt edit command has UpdateText as Edit. based on a condition i have to change the text to 'Approve'. kindly some one help me achieve this. Thanks and Regards, Biju S.

    V 1 Reply Last reply
    0
    • B Biju Sam

      Hi All, I want to change the UpdateText of a CommandField(Edit) on runtime in GridView. For eg: Now my defalt edit command has UpdateText as Edit. based on a condition i have to change the text to 'Approve'. kindly some one help me achieve this. Thanks and Regards, Biju S.

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      itsbijusamuel wrote:

      Now my defalt edit command has UpdateText as Edit. based on a condition i have to change the text to 'Approve'

      Click the Edit Columns in the Smart Tag menu of the GridView. Select the CommandField, you can change the Text of any field there. Don't post again again...

      Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

      B 1 Reply Last reply
      0
      • V Venkatesh Mookkan

        itsbijusamuel wrote:

        Now my defalt edit command has UpdateText as Edit. based on a condition i have to change the text to 'Approve'

        Click the Edit Columns in the Smart Tag menu of the GridView. Select the CommandField, you can change the Text of any field there. Don't post again again...

        Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

        B Offline
        B Offline
        Biju Sam
        wrote on last edited by
        #3

        I need to do this on runtime and not in design mode.

        V 1 Reply Last reply
        0
        • B Biju Sam

          I need to do this on runtime and not in design mode.

          V Offline
          V Offline
          Venkatesh Mookkan
          wrote on last edited by
          #4

          itsbijusamuel wrote:

          I need to do this on runtime and not in design mode.

          Better use Template Item and add the controls whatever you want and change the Text whenever you want...

          Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

          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