Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What's the difference between viewstate and sessionstate?

1069


How does asp net store session ids by default?

984


What is Web API Routing?

1179


What are app services?

938


What is scope of an application variable in asp.net?

992


Why session management is required?

1012


how to debug web services on consumer side?

1066


What are the benefits of Razor View?

948


If we remove web.config or machine.config from the application then, is this application will works?

1017


What is asp net_sessionid?

1101


How to reduce the width of textbox in editcommandcolumn of datagrid?

1006


What is difference between cookies and cache?

1048


Can you explain one critical mapping? Performance issue which one is better? Whether connected lookup tranformation or unconnected one?

1265


What are user controls?

1009


Is LINQ performance wise better or using sqlcommand?

5100