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
What is session id in web application?
Describe the differences between the lifecycles of Windows services and Standard EXE?
What is intrinsic objects in asp.net?
How many languages are supported by .NET at present time?
What is difference between view and partial view?
What is difference between or and orelse?
Explain the features that make asp.net more used framework? : asp.net mvc
Explain how is a property designated as read-only?
Explain in what order a destructors is called.
What is runat?
What are the Types of object in asp
Explain the namespace classes used in asp.net mvc? : asp.net mvc
What is the life cycle of an asp.net page?
Explain the Session state management options available with ASP.NET?
What is difference between cookies and cache?