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

Code for updating the database by entering the data into textboxes in aspx form?

2 Answers   TCS, Wipro,


How to Insert/Add in ASPXgridview

0 Answers   Infosys,


What are the 4 tenants of SOA/D.

1 Answers  


Explain how can we inherit a static variable?

0 Answers  


What is a 307 redirect?

0 Answers  






What are clr?cts?cls?

4 Answers   e4e, HCL, Microsoft, Tata Communications,


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

0 Answers  


Exception handling

2 Answers   Syntel,


difference between Trace and Debug ?

9 Answers   Accenture, Addlux, Microsoft,


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

0 Answers  


Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.

0 Answers   eMids,


What is strong name and which tool is used for this ?

3 Answers   Patni,


Categories