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
Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?
I’m having some trouble with cas. How can I diagnose my problem?
A Web Service Can Only Be Written In .net. Is it True??
When should I use server transfer and response redirect?
What are ASHX files?
What are the different web pages?
How you can access the properties and controls of master pages from content pages?
What are the steps involved to fill a dataset?
Differentiate between client-side and server-side validations in web pages.
How many types of cookies are available in asp?
What is dynamic web page with example?
if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....
Explain the various authentication mechanisms in asp.net.
What is an axd file?
What are sql joins?