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

How to call a child form method from the master page?

1 Answers  


What is x xss protection?

0 Answers  


Difference between Active Exe and Activex dll ?

1 Answers   DELL,


what are webservices?In which circumstances we can go for webservices?

3 Answers   Microsoft,


What is difference between web api and web services?

0 Answers  






What is difference between view and partial view?

0 Answers  


What are resource file and how do we generate resource file?

0 Answers  


Is global asax mandatory?

0 Answers  


Describe and In Process Vs Out of Process component. Which is faster?

2 Answers   Syntax Softtech,


Where web.config file is used?

0 Answers   HCL,


What property is used on the datatable to indicate a conflict after an update? a) HasConflict b) HasError c) HasCollision d) HasDataError

1 Answers   Syntax Softtech,


Write the different features of a Thread and a Process?

0 Answers   Siebel,


Categories