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. gridview dropdownlist bind onclick

gridview dropdownlist bind onclick

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

    hi, is it possible to bind a dropdownlist in gridview when user click on the row. i have a scenario that the gridview will load a large amount of data. then when the user select on the dropdown, it takes 10-20 seconds to load. I was thinking that it would be better to bind the dropdownlist when the row is selected or when the dropdownlist is click on the specific row. after the user select the value of dropdownlist on the specific row, gridview automatically re-bind.

    C# コードMicrosoft End User 2000-2008 「「「「「「「「「「「「「「「「「「「「「「「「「「「「 The best things in life are free 」」」」」」」」」」」」」」」」」」」」」」」」」」」」

    A 1 Reply Last reply
    0
    • C C Coudou

      hi, is it possible to bind a dropdownlist in gridview when user click on the row. i have a scenario that the gridview will load a large amount of data. then when the user select on the dropdown, it takes 10-20 seconds to load. I was thinking that it would be better to bind the dropdownlist when the row is selected or when the dropdownlist is click on the specific row. after the user select the value of dropdownlist on the specific row, gridview automatically re-bind.

      C# コードMicrosoft End User 2000-2008 「「「「「「「「「「「「「「「「「「「「「「「「「「「「 The best things in life are free 」」」」」」」」」」」」」」」」」」」」」」」」」」」」

      A Offline
      A Offline
      Ali Al Omairi Abu AlHassan
      wrote on last edited by
      #2

      Sir, I think you should use an asynchronous callback technique (implement [System.Web.UI.ICallbackEventHandler](http://msdn.microsoft.com/en-us/library/system.web.ui.icallbackeventhandler.aspx)) in RowDataBound event add the following:

      string args = "some thing unique";
      this.DropDownList1.Attributes.Add("onclick", "javascript:DoServerCall(args);");

      100 :rose: ;)

      Help people,so poeple can help you.

      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