How to load datagrid in edit mode?

A

ashtek

Hi,
Is there any way I can load a datagrid in edit mode (example : 2nd
row should be in edit mode whe the page loads for the first time) when
a page is loaded for the first time?
The scenario is like this : I have a webpage with a table which has n
number of columns.
One of the columns in the table is a hyperlink and when the user clicks
on a link I want to load a new page passing the ID of the link cilcked.
In this new page I have a datagrid and depending on the ID passed, I
want to make one of the rows in the grid editable when this new page
loads.
Thanks,
Ashish.
 
E

Elton Wang

When you bind datagrid:

datagrid.EditItemIndex = n;
datagrid.DataSource = dataObject;
datagrid.DataBind();

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top