what are grid events ?code for dropdown inside grid and
binding dropdown syntax

Answer Posted / om shivaya namaha

two ways are their to bind the data in the Grid:-
GridID_ItemDatabound()
{
textbox txt =new textbox();
dataset ds=new dataset();
ds=bind data from DataBase;
txt=(textbox)e.item.findcontrol("ddl");
txt.datasource=ds;
txt.databind();
}

like that we can bind data to dropdown list through
ItemCommand also

ItemDatabound will fire when ever we are binding the data to
datagrid it will iterate for each row and each Item

ItemCommand will fire when ever we click on any control in
the datagrid then it will fire but it will refer to the
current row in a datagrid


Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is session id in web application?

616


Describe the differences between the lifecycles of Windows services and Standard EXE?

685


What is intrinsic objects in asp.net?

742


How many languages are supported by .NET at present time?

393


What is difference between view and partial view?

589






What is difference between or and orelse?

636


Explain the features that make asp.net more used framework? : asp.net mvc

569


Explain how is a property designated as read-only?

646


Explain in what order a destructors is called.

676


What is runat?

699


What are the Types of object in asp

725


Explain the namespace classes used in asp.net mvc? : asp.net mvc

584


What is the life cycle of an asp.net page?

608


Explain the Session state management options available with ASP.NET?

648


What is difference between cookies and cache?

601