Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
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));
}