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
Describe the application event handlers in ASP.NET?
What is the difference between sealed vs static class?
Explain the function of new view engine in asp.net? : asp.net mvc
What is base class of button control in .net?
How many types of controls are there in asp.net?
What is the difference between page.registerclientscriptblock and page.registerstartupscript?
What is difference between view state and session state?
What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?
What is inproc mode in session?
Who creates jsessionid?
What are all the various Estimation Techniques available ?
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
Explain the updatepanel?
What is a global postback url?
Can we handle the error and redirect to some pages using web.config?