what are grid events ?code for dropdown inside grid and
binding dropdown syntax
Answers were Sorted based on User's Feedback
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 |
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 |
Why is global asax is used for?
Why do we use asp.net?
Can you set which type of comparison you want to perform by the comparevalidator control?
What is simple data binding?
Where do we store our connection string in asp.net application?
Explain managed code an un-managed code.
How to remove cache object in asp.net?
I am using SQLServer 2005. I have one table called Drivers. Every day thousands of records will be added in this table. I have to show all these records in my GridView with out applying ajax timer beacause we don't know the time limit when the new record come to the table. Sometimes it will add for 10 seconds some times 20 seconds. There by Please try without using timer or any other soultion apply for the table in sqlserver. But, i want to see all records immediately when new record comes in table. How? Thanks in advance... Ramesh
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
what is session,cokkies in asp.net??
What’s the difference between response .redirect and server.transfer?
Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?