How to load datagrid in edit mode?

Discussion in 'ASP .Net Datagrid Control' started by ashtek@gmail.com, Nov 25, 2005.

  1. Guest

    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.
     
    , Nov 25, 2005
    #1
    1. Advertising

  2. Elton Wang Guest

    When you bind datagrid:

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

    HTH

    <> wrote in message
    news:...
    > 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.
    >
     
    Elton Wang, Nov 25, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Schultz
    Replies:
    3
    Views:
    568
    =?Utf-8?B?QmlsbCBCb3Jn?=
    Feb 14, 2005
  2. John J Lee
    Replies:
    3
    Views:
    491
    bruno at modulix
    Dec 1, 2005
  3. Frank Kurka
    Replies:
    8
    Views:
    312
  4. Jaime Stuardo

    GridView control enters edit mode when I click Edit link twice

    Jaime Stuardo, Apr 7, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    401
    Jaime Stuardo
    Apr 7, 2006
  5. jobs at webdos
    Replies:
    0
    Views:
    478
    jobs at webdos
    Oct 9, 2006
Loading...

Share This Page