Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi friends,

I want add dropdownlist in column of a gridview, and by selecting a particular row in a dropdownlist i want to populate remaining columns of an gridview. please help me out friends...
Posted

Try to read this article[^]. Hope this helps.
 
Share this answer
 
Comments
Vivek Shankar 5-Dec-11 5:05am    
thanku
Vivek Shankar 6-Dec-11 6:30am    
protected void Page_Load(object sender, EventArgs e)
{

if (!Page.IsPostBack)

{

// This is because Table[1] contains Categories

GridView1.DataSource = GetDataSet().Tables[1];

GridView1.DataBind();

}

}


indexoutofrange exception was unhandled by user code, how to come out of that?
and its rising table1 does not exist.
Refer below article for Dropdownlist in Gridview asp.net

http://www.laptrinhdotnet.com/2015/07/su-dung-control-dropdownlist-trong.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900