Hi JeeNew,
Thanks for using Syncfusion product.
Suggestion 1
In order to update the GridControl by new set of values, you can use the PopulateValues method and then you should refresh the GridControl using Refresh method. Please refer to the below code example,
Code example
DataTable data = new DataTable();
CreateTable(data);
//Repopulate the grid.
this.gridControl1.PopulateHeaders(GridRangeInfo.Cells(0, 1, gridControl1.RowCount, gridControl1.ColCount), data);
this.gridControl1.PopulateValues(GridRangeInfo.Cells(1, 1, gridControl1.RowCount, gridControl1.ColCount), data);
this.gridControl1.Refresh(); |
Suggestion 2
If you would like to update the specific cell value in button click. You can use the CellValue property. Please refer the below code example and the KB link,
Code example
this.gridControl1[1, 2].CellValue = "John"; |
Suggestion 3
In order to clear the grid cell values, you can use the ClearCells method. Please refer to the below code example and the sample,
Code example
this.gridControl1.ClearCells(GridRangeInfo.Table(), true); |
Regards,
Mohanraj G