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

Can we use a static function with a non-static variable?

0 Answers  


what is SQL cache Invalidation?

1 Answers  


Explain what is viewstate?

0 Answers  


What is viewstate?

5 Answers   Microsoft,


How many ways are there to maintain a state in .net? What is view state?

0 Answers  






How Can we use multiple forms in single asp.net application?

3 Answers   Polaris,


How do you insert multiple rows from a grid view to database table under a single transaction?

1 Answers  


How many types of page.

5 Answers   TCS, Verinon Technology Solutions,


What is the difference between client-side and server-side validations in webpages?

0 Answers  


Will the asp.net validators run in server side or client side?

0 Answers  


What are the event handlers that we can have in global.asax file?

0 Answers  


What are the objects of ASP.NET ?

6 Answers  


Categories