TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jayanth Reddy
NA
250
9.8k
display decimal upto two points after retrieving frm db
Aug 1 2019 12:38 AM
I have created a Linq to SQL class and in my Employee table i have a column named as salary with decimal data type.Now when I am trying to
retreive to the application salary is upto four decimal points.Can any one help me how to fix it to two decimal points.
public partial class Form1 : Form
{
CompanyDataContext dc= new CompanyDataContext();
public Form1()
{
InitializeComponent();
}
void LoadData(){
CompanyDataContext dc = new CompanyDataContext();
Table<Employee> tb = dc.Employees;
dg1.DataSource = tb;
}
private void Form1_Load(object sender, EventArgs e)
{
LoadData();
}
Reply
Answers (
1
)
Referencing an embedded resource
Unable to connect remote server - web service error