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. General Programming
  3. C#
  4. user control grid with dropdown

user control grid with dropdown

Scheduled Pinned Locked Moved C#
cssdatabasehelp
1 Posts 1 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.
  • D Offline
    D Offline
    dsaikrishna
    wrote on last edited by
    #1

    Dear all, here i have done a grid node like user control for displaying the items in each and every page in that grid i have a dropdown list for selecting the feature of the item . here i has to fetch the fetch the feature from database and based upon that i has to display. the below i had written but it is not working so please help me Thanks and Regards protected void gridnode1_SelectedIndexChanged(object sender, EventArgs e) { dsfeature = con.GiveDataSet("select features from b2bpattributes ,b2bproducts where b2bpattributes.productgroup in (select productgroup from b2bproducts where productid='" + str2 + "') and b2bpattributes.productid=b2bproducts.productid and b2bproducts.available='Online'"); //select features from b2bpattributes where productgroup in (select productgroup from b2bproducts where productid='" + str2 + "' and available='Online')"); if (dsfeature.Tables[0].Rows[0]["features"].ToString() != "") { if (dsfeature.Tables[0].Rows.Count != 1) { //lblfeature.Visible = false; ddlfeature1.DataSource = dsfeature; ddlfeature1.DataTextField = "features"; ddlfeature1.DataBind(); } else { //lblfeature.Visible = true; lblfeature.Text = dsfeature.Tables[0].Rows[0]["features"].ToString(); ddlfeature1.Visible = false; //lblselect.Visible = false; } } else { ddlfeature1.Visible = false; //lblselect.Visible = false; } }

    sai krishna

    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