I have an asp.net gridview and a column that has digits e.g. 1234567, I want to show the last 4 digits like so xxx4567. Is this possible.
I am binding my gridview to a list of objects as below:
List<Details> objdet = Manager.Get_Details(ID);
if (objdet!= null)
{
gvDetails.DataSource = objdet;
gvDetails.DataBind();
}
and in my grid i have this:
<asp:GridView ID="gvDetails" runat="server" AllowPaging ="true"
AllowSorting ="true" AutoGenerateColumns="false" GridLines="None" CssClass="mGrid">
<Columns>
<asp:BoundField DataField="DetNumber" HeaderText="Number" ReadOnly="true" />
</Columns>
</asp:GridView>
In your Details object, add another Property called something like
NumberWithMask:Then use the new field in the relevant
BoundField: