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 are the advantage in asp.net and what are the question ask for interview in vb.net and asp.net

0 Answers   TCS,


How to convert any string to view state format in asp.net? §ÇÛ짬ªª³ö»Ç¾ö»ÂÇ¿¾»¼»¾ö¼ÉÇöÇÏǼ»Ãö®±ª§°ö«³ -- i want convert this string to view state.

1 Answers   iFlex,


Explain the life cycle of an ASP .NET page

2 Answers   HCL, Surya Software,


What is the typical session identifier?

0 Answers  


What is client side state management?

0 Answers  


Why Web Services?

1 Answers  


which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites

0 Answers   TCS,


Which Is Faster MVC or ASP.net ?

0 Answers   Arigo Infotech,


What is a WebService and what is the underlying protocol used in it? Namespace?

1 Answers  


Which authentication uses a combination of windows and iis authentication?

0 Answers  


Differentiate between Server Transfer and Response Redirect?

2 Answers   DELL, Siebel, TCS,


What is AutoEventWireup attribute for ?

0 Answers  


Categories