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 http request and response?
Explain the advantages of passport authentication.
What is the concept of view state in asp.net?
What is __ requestverificationtoken?
What are the 3 types of web?
What is the extension of master page in asp.net?
Can we use MSSql as backend in asp.net...if yes then How.?
How do sessions work?
Differentiate strong typing and weak typing
If 200 is for all successful operation then why do we have 201 response codes?
What is form method?
What is the difference between page directive include and action tag include?
Explain the asp.net page life cycle.
Differentiate between a hyperlink control and a linkbutton control.
How u refer webservices?