I have a RadGrid with some columns inside of it. The data that is bound is to a custom class that has a HttpWebResponse property to it.
I want this property to be formatted in a specific way where I can use both the StatusCode and StatusDescription.
I am able to use one by setting "DataField" to "Response.StatusCode", but how do I format it for my liking's?
Here is the GridBoundColumn i'm using:
<telerik:GridBoundColumn DataField="Response.StatusCode" />
And here is what im aiming for (Pseudo code):
<telerik:GridBoundColumn DataField="Response" Format="{0}.StatusDescription ({0}.StatusCode}
/>
Where the output would for example be:
Page Not Found (404)
I want this property to be formatted in a specific way where I can use both the StatusCode and StatusDescription.
I am able to use one by setting "DataField" to "Response.StatusCode", but how do I format it for my liking's?
Here is the GridBoundColumn i'm using:
<telerik:GridBoundColumn DataField="Response.StatusCode" />
And here is what im aiming for (Pseudo code):
<telerik:GridBoundColumn DataField="Response" Format="{0}.StatusDescription ({0}.StatusCode}
/>
Where the output would for example be:
Page Not Found (404)