I want to edit the value of field coming from ObjectDataSource.
My sample code of aspx page:
<
asp:ObjectDataSource
ID
=
"ObjectDataSource1"
runat
=
"server"
SelectMethod
=
"SrchOrder"
TypeName
=
"ClsOrder"
>
<
SelectParameters
>
<
asp:ControlParameter
ControlID
=
"Order Number"
Name
=
"order_id"
PropertyName
=
"Text"
Type
=
"String"
/>
<
asp:ControlParameter
ControlID
=
"Seller"
Name
=
"seller_name"
PropertyName
=
"Text"
Type
=
"String"
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>
<
telerik:RadGrid
ID
=
"radGrid_srch_order"
runat
=
"server"
PageSize
=
"100"
AllowSorting
=
"false"
AllowPaging
=
"false"
ShowFooter
=
"false"
ShowGroupPanel
=
"false"
HeaderStyle-HorizontalAlign
=
"Center"
HeaderStyle-Font-Bold
=
"true"
AutoGenerateColumns
=
"false"
DataSourceID
=
"ObjectDataSource1"
>
<
MasterTableView
AllowFilteringByColumn
=
"False"
AutoGenerateColumns
=
"false"
TableLayout
=
"Auto"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"order_dt"
AutoPostBackOnFilter
=
"false"
ItemStyle-HorizontalAlign
=
"Center"
HeaderText
=
"Order Date"
SortExpression
=
"order_dt"
AllowFiltering
=
"false"
UniqueName
=
"order_dt"
/>
<
telerik:GridBoundColumn
DataField
=
"seller_first_name"
ItemStyle-HorizontalAlign
=
"Center"
HeaderText
=
"seller First Name"
SortExpression
=
"seller_first_name"
AllowFiltering
=
"false"
UniqueName
=
"seller_first_name"
/>
<
telerik:GridBoundColumn
DataField
=
"seller_last_name"
ItemStyle-HorizontalAlign
=
"Center"
HeaderText
=
"seller Last Name"
SortExpression
=
"seller_last_name"
AllowFiltering
=
"false"
UniqueName
=
"seller_last_name"
/>
<
telerik:GridBoundColumn
DataField
=
"status"
ItemStyle-HorizontalAlign
=
"Center"
HeaderText
=
"Status"
SortExpression
=
"status"
AllowFiltering
=
"false"
UniqueName
=
"status"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
protected void btnSearch_Click(object sender, EventArgs e)
{
radGrid_srch_order.DataBind();
}
The value of the field "status" that comes from database are {1, 2, 3, 4} where
1 desc undelivered
2 desc delivered
3 desc paid
4 desc unpaid
How can I show the desc of the status code in GridBoundColumn. I know it can be done from sql query but how can I do it using telerik?