Announcement

Collapse
No announcement yet.

Using a drop drop list to navigate paging of a gridview populated by a web service?

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using a drop drop list to navigate paging of a gridview populated by a web service?

    WordPress Hosting on SSD Servers
    I'm trying to create a web form in c# asp.net with visual studio 2010 framework 4.0. I take a username and fill a gridview with information pulled from a webservice. From that information, I extract an item to fill another gridview from a different web service. It splits into 15 pages and I would like to add a dropdownmenu to jump to a certain page, but this does not seem to work:

    protected void PageList_SelectedIndexChanged(object sender, EventArgs e) { grd3.PageIndex = Convert.ToInt32(PageList.SelectedValue); }

  • #2
    ASP.Net Hosting starts @ $3.18/Mo.
    Hi,
    If you want a value and a caption (label), create an appropriate class class ComboItem { public int ID { get; set; } public string Text { get; set; } }
    In the ComboBox you then set the DisplayMember property to Text and the ValueMember property to ID.

    Comment

    Working...
    X

    Sign up for a News Letter Click here to sign up