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
Define static function?
What is viewstate information stored?
Difference between web user control and web custom control?
What is the importance of Global.asax in ASP.NET?
What does asp in asp.net stand for?
Explain the main differences between asp and asp.net?
How to find last error which occurred?
To get the values in two different controls to match which control you use it?
Explain the disadvantages of viewstate?
What is windows active directory authentication?
Why we are using mvc instead of asp.net? : Asp.Net MVC
What is query string? What are its advantages and limitations?
Can I tap into other windows livetm services?
What is _viewstart?
What is a 1x1 pixel?