Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
In Gridview' RowEditing event, what piece of code should be written for Editing any Gridview Rows?
on 11/22/2013 | Category:
ASP.NET Interview questions
| Views: 8646 |
Select from following answers:
GridView1.EditIndex = -1
GridView1.EditIndex = 0
GridView1.EditIndex = 1
GridView1.EditIndex = e.NewEditIndex
We must write GridView1.EditIndex = e.NewEditIndex to Edit any Gridview Rows.
As we know that, we have both ItemTemplate as well as EditItemTemplate in Gridview. ItemTemplate is for Viewing rows and EditItemTemplate is for Editing any gridview rows.
When calling GridView1.EditIndex = e.NewEditIndex, then it will call EditItemTemplate implicitely. And whatever controls we have taken inside EditItemTemplate, will be visible and load, so that we can update the their' contents. After clicking on Edit Icon/Button, Update icon will be displayed.
Show Correct Answer
Many Interviews |
< Previous :
How many ways to compare String values in Dot Net?
Next > :
In Gridview' RowCancelingEdit event, what piec ...
Comments or Responses
Login to post response
More Interview Questions by vishalneeraj-24503
In Gridview' RowCancelingEdit event, what piece of code should be ...
Which Gridview event is used for Update operation?
Explain the various CommandName properties used in Gridview to perform ...
How to get Gridview Selected Row-Index?
Which CommandName property of Command Button,Link Button or Image Butt ...
How to find Gridview's Control in RowDataBound event?
Gridview's SelectedRow property is used for which gridview' ev ...
What is Gridview_SelectedIndexChanged and Gridview_RowCommand events i ...
Latest Interview Questions
Which of the following transaction isolation levels is the default in ...
Which of the following is FALSE regarding DML triggers?
If you have ON DELETE CASCADE statement to the foreign key relationshi ...
SELECT * FROM sys.dm_db_index_physical_stats (DB_ID(N'study'), ...
Which is social features introduced in SharePoint 2010?
What is the difference between BDC and BCS?
How to limit the results to include only the top 100 most recent recor ...
CREATE TABLE employee ( id_num int IDENTITY(100,10), fname varchar (20 ...