제목 : String.Format()으로 숫자 3자리마다 콤마 찍기 샘플
글번호:
|
|
328
|
작성자:
|
|
레드플러스
|
작성일:
|
|
2013/01/31 오전 1:43:00
|
조회수:
|
|
4374
|
this.lblProjectName.Text = String.Format("{0}: {1:#,#}", dr["Project_Name"].ToString(), Convert.ToInt32(dr["Project_Price"]));
this.lblProjectName.Text += String.Format("{0}: {1}", dr["Project_Name"].ToString(), Convert.ToInt32(dr["Project_Price"]).ToString("###,###"));
this.lblProjectName.Text += String.Format("{0}: {1}", dr["Project_Name"].ToString(), Convert.ToInt32(dr["Project_Price"]).ToString("N", new System.Globalization.CultureInfo("ko-KR")));