what are grid events ?code for dropdown inside grid and
binding dropdown syntax

Answers were Sorted based on User's Feedback



what are grid events ?code for dropdown inside grid and binding dropdown syntax..

Answer / 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

what are grid events ?code for dropdown inside grid and binding dropdown syntax..

Answer / mar

row edit event

Is This Answer Correct ?    0 Yes 0 No

what are grid events ?code for dropdown inside grid and binding dropdown syntax..

Answer / amiya kumar parida

To bind dropdownlist inside a grid ,The event is
rowdatabound().It bind the grid one by one row.
Instead of it we can bind the grid from source code calling
a function of code behind or direct assign a datasourse.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

What is runtime host ?

3 Answers   Digital GlobalSoft,


Explain the difference between response.redirect vs server.transfer

0 Answers  


Who creates jsessionid?

0 Answers  


Types of exceptions in dot net???

1 Answers   TCS,


What is the server of asp.net?

0 Answers  






What is protected configuration?

0 Answers  


benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks

0 Answers   HCL,


What is the use of placeholder control?

0 Answers  


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

0 Answers  


What is the use of session?

0 Answers  


Explain how cookies work. Give an example of cookie abuse.

0 Answers  


What is cross page posting? How is it done?

0 Answers  


Categories