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

[Solved] Delete row when looping thru rows

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prathibarani
Top achievements
Rank 1
Prathibarani asked on 01 Apr 2013, 03:23 PM
Hi,

We use vs 2012 with 2013 Q1 RadGrid. I am trying to delete row when looping thru rows in code behind in private routine like this:

int

 

 

rowCount = pRgdTrans.Items.Count;

 

 

 

int curRowIdx = 0;

 


while (curRowIdx < rowCount)
{    

    GridDataItem

 

 

curTransRow = pRgdTrans.Items[curRowIdx];
    if (curTransRow["ID"].Text == 100)

 

            //delete row.
           curTransRow.Remove();       -------------- how to do this.
}

Thanks,
Prathiba

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Apr 2013, 04:39 AM
Hi,

I am not quite sure about your requirement. You can use the PerformDelete method which performs automatic delete using the DataSource control. Check the following help documentation for more.
Deleting Records

Thanks,
Shinu.
Tags
Grid
Asked by
Prathibarani
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or