Programmatic Add a new row as the first or last row of a Grid

3 posts, 0 answers
  1. Bruno
    Bruno avatar
    26 posts
    Member since:
    Feb 2009

    Posted 10 Mar 2009 Link to this post

    Hello,

    I Have a RadGrid that loads data from a tablaAdapter,
    how can I insert a new row as the first or last row of the grid.

    example:

    TableAdapter Bounded Grid.

    Name     Phone
    Bruno   1111111
    Jonh     1111111

    Now I want to add programmatically a new row as the first row before the bounded collumns are loaded.

    Name        Phone
    >> NewName  NewPhone
    Bruno       1111111
    Jonh         1111111

    There is some method like :

    RadGrid1.Rows.Add('Name',Phone')  ??


    Thanx
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Mar 2009 Link to this post

    Hi Bruno,

    I would suggest you to manipulate the DataTable to insert a row at the bottom or top of the table rows so that you can achieve a Grid structure like you mentioned.

    Shinu

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bruno
    Bruno avatar
    26 posts
    Member since:
    Feb 2009

    Posted 11 Mar 2009 Link to this post

    I dont have permission to do changes in the Procedure or the DataSet.

    I need to add this column bt Aspx or .cs code behind

    there´s a way? maybe JavaScript append
Back to Top