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

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

2 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 10 Mar 2009, 08:10 PM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 11 Mar 2009, 11:02 AM
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

0
Bruno
Top achievements
Rank 1
answered on 11 Mar 2009, 05:37 PM
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
Tags
Grid
Asked by
Bruno
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Bruno
Top achievements
Rank 1
Share this question
or