All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
<
telerik:GridBoundColumn
DataField
=
"UnitPrice"
HeaderText
UniqueName
DataFormatString
"{0:c}"
/>
protected
void
RadGrid1_ItemDataBound(
object
sender, Telerik.Web.UI.GridItemEventArgs e)
{
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
GridEditableItem edit = (GridEditableItem)e.Item;
TextBox txt = (TextBox)edit[
].Controls[0];
string
dataFormatString = (RadGrid1.MasterTableView.GetColumn(
)
as
GridBoundColumn).DataFormatString;
txt.Text = String.Format(dataFormatString,
double
.Parse(txt.Text));
}