Hi ,
In the Entities class
C#
public class ItemNames
{
public string ItemNumber { get; set; }
}Here ItemNumber I get from the DB, but has to show as only Number in display
Can you suggest how to re-name and show it.
Thanks
Hi ,
In the Entities class
public class ItemNames
{
public string ItemNumber { get; set; }
}Here ItemNumber I get from the DB, but has to show as only Number in display
Can you suggest how to re-name and show it.
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishal YelveRank #178 · 13.6K reputationPosted May 25, 2023, 7:11 AM EDT
Hi Satish,
Do you want to show this as Number in UI. If Yes, then use DataAnnotations;
using System.ComponentModel.DataAnnotations; public class ItemNames { [Display(Name = "Number")] public string ItemNumber { get; set; } }