This is a migrated thread and some comments may be shown as answers.

Edit item 0 from button on CommandItemTemplate

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve Y
Top achievements
Rank 2
Steve Y asked on 14 Sep 2008, 11:17 PM
I have a grid where I display one (and only one) row from a linqdatasource in cardview and I want to have a button on the CommandItemTemplate (CIT) popup an edit template. I have successfully implemented a button on the CIT to insert a new row using commandname="initinsert" on the button. But I am stuck on how to get into edit mode.

Can someone help please?

Thanks. Steve

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladimir
Top achievements
Rank 1
answered on 15 Sep 2008, 04:09 AM
Hi Steve,

You can set Items[0].Edit to true and Rebind() the grid.

Vlad
Tags
Grid
Asked by
Steve Y
Top achievements
Rank 2
Answers by
Vladimir
Top achievements
Rank 1
Share this question
or