C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






View Message



Sender Anuraj

Recipient(s) Spha

Date 01 Oct 2009


Re: Re: How to bind the dropdown inside the gridview o

Try this code

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
DropDownList ddl = e.Row.Cells[0].FindControl("MyDropdown") as DropDownList;
ddl.DataSource = new DataTable();
ddl.DataBind();
}



>>> On 01 Oct 2009, Spha wrote:

Hi,
you are telling me to use GridView_ItemDataBound event. how do I use that an where? I posted this question because I don't know what to do so if you don't mind can you be detailed when replying.
thank ou






dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use