粤语学习精选初中考试1096
DevExpress.XtraGrid.Columns.GridColumn col = View.Columns.ColumnByFieldName(“Price”);
if(col == null)return;
View.BeginSort();
try {
// Obtain the number of data rows.
int dataRowCount = View.DataRowCount;
// Traverse data rows and change the Price field values.
for(int i = 0;i《dataRowCount;i++){
object cellValue = View.GetRowCellValue(i,col);
double newValue = Convert.ToDouble(cellValue)* 0.9;
View.SetRowCellValue(i,col,newValue);
}
} finally { View.EndSort();}
}
Visual Basic
==================================
ABC Amber CHM Converter 7.31
Trial version
==================================复制代码
Private Sub UpdatePrice(ByVal View As DevExpress.XtraGrid.Views.Base.ColumnView)
' Obtain the Price column.
Dim Col As DevExpress.XtraGrid.Columns.GridColumn = View.Columns.ColumnByFieldName


