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
Can we set master page as a start page?
Define session in asp.net.
what is a .xap file? Explain with an example.
How you can stop the validation of ASP.NET controls from client side?
Explain the namespace classes used in asp.net mvc? : asp.net mvc
code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications
What is redirecting behavior?
Can you explain composite pattern?
Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?
Which method is used to enforce garbage collection in .net?
Explain the difference between sql invalidation and sql notification.
Where is cookie used in asp.net?
What is the difference between login controls and forms authentication?
What is the significance of ASP.NET routing?
What are strong names?