All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
You may set the DataStringFormat for auto-generated columns in RadGridView as follows:
private
void
RadGridView1_AutoGeneratingColumn(
object
sender, Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs e)
{
GridViewDataColumn column = e.Column
as
GridViewDataColumn;
if
(column.DataType ==
typeof
(
int
))
column.DataFormatString =
"{0:p}"
;
}