ram singh
ram singh

Reputation: 1

What is the equivalent to EditItemIndex of DataList in a ListView control?

Acutallly I want to fire item editing events. But how do I find the control? I mean to say as we find the control in edititem event of DataList using EditItemIndex. What is the equivalent to EditItemIndex in a ListView?

Upvotes: 0

Views: 270

Answers (1)

Remy
Remy

Reputation: 12703

Maybe you mean this:

    protected void lvDocs_ItemEditing(object sender, ListViewEditEventArgs e)
    {
        lvDocs.EditIndex = e.NewEditIndex;
        //do whatever
    }//lvDocs_ItemEditing

Upvotes: 0

Related Questions