GridBoundColumn
sc = (GridBoundColumn)e.Column;
sc.DataFormatString = "{0:###,### KB}";
However, I couldn't find a way to modifiy it. Even, I tried to make it invisible using
RadFileExplorer1.Grid.Columns.RemoveAt(1);
It makes header part disappeared, but it still shows the size value in the data grid.
I also tried to use Grid ItemDataBound as follows, it doesn't work. I found after fired RadFileExplorer1_Grid_ItemDataBound, the RadFileExplorer1 refreshes whole grid again and make it as it was, i.e., before my rendering is applied.
protected
void RadFileExplorer1_Grid_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
item["Size"].Text = string.Format("{0:###,### KB}", item["Size"].Text);
}
}
As far as what i've successed in the format change is just an alignment as like:
protected
void RadFileExplorer1_Grid_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
RadFileExplorer1.Grid.Columns[1].ItemStyle.HorizontalAlign = HorizontalAlign.Right;
RadFileExplorer1.Grid.Columns[1].ItemStyle.Width = 30;
RadFileExplorer1.Grid.Columns[1].HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
RadFileExplorer1.Grid.Columns[1].HeaderStyle.Width = 30;
}
Thanks.