Thank you responding quickly. See below - the DataFormatString is not affecting the display and the output is same. What is the best place to change the DataFormatString for AutoGenerated Columns?
List<ds> dslist = new List<ds>();
dslist.Add(
new ds("A1", "1000"));
dslist.Add(
new ds("A2", "2000"));
dslist.Add(
new ds("A3", "3000"));
radGrid1.DataSource = dslist;
radGrid1.DataBind();
foreach (GridColumn column in radGrid1.MasterTableView.AutoGeneratedColumns) // .MasterTableView.RenderColumns)
{
if (column is GridBoundColumn)
{
GridBoundColumn bc = column as GridBoundColumn;
bc.DataFormatString =
"{0:C2}";
}
}