I have a grid view with two columns as Column1 and Column2.On clicking a button, i need to increment the values of all cells which are under this particular column1.please help out.
Well, updating the values in this manner could introduce some serious problems. If you are dealing with many rows some of them might not be available bacause of the virualization techniques that RadGridView uses - as a result some rows will not be updated.
A better approach is to update the actual data that the grid is bound to. If your grid is boud to customer objects and the column that you would like to update displays the age of all customers just update the property Age of all your objects (your data items should implement INotifyCollectionChanged interface).
publicvoid UpdateAge()
{
foreach(Customer customer inthis.myGrid.Items)
{
customer.Age++;
}
}
I have also attached a sample project that demonstrates the approach.