티스토리 뷰
행을 필터링하거나 열의 값을 계산하거나 집계 열을 만드는 데 사용되는 식을 가져오거나 설정합니다.
예제
private void CalcColumns()
{
DataTable table = new DataTable ();
// Create the first column.
DataColumn priceColumn = new DataColumn();
priceColumn.DataType = System.Type.GetType("System.Decimal");
priceColumn.ColumnName = "price";
priceColumn.DefaultValue = 50;
// Create the second, calculated, column.
DataColumn taxColumn = new DataColumn();
taxColumn.DataType = System.Type.GetType("System.Decimal");
taxColumn.ColumnName = "tax";
taxColumn.Expression = "price * 0.0862";
// Create third column.
DataColumn totalColumn = new DataColumn();
totalColumn.DataType = System.Type.GetType("System.Decimal");
totalColumn.ColumnName = "total";
totalColumn.Expression = "price + tax";
// Add columns to DataTable.
table.Columns.Add(priceColumn);
table.Columns.Add(taxColumn);
table.Columns.Add(totalColumn);
DataRow row = table.NewRow();
table.Rows.Add(row);
DataView view = new DataView(table);
dataGrid1.DataSource = view;
}
- Total
- Today
- Yesterday
- 앉은뱅이 방울토마토
- 복호화
- c# 음성
- c# SpeechSynthesizer
- 베란다 방울토마토
- imemode
- MySQL
- 코딩
- 인삼키우기
- 드론
- ArgumentException
- 시스템트레이딩
- ESP32
- 스털링
- 이베스트
- 방울토마토
- C# 마우스 폼이동
- 암호화
- C# textbox 커서 위치
- 베란다 텃밭
- c# Speech
- 이 행은
- NET FRAMEWORK
- c#
- Xingapi
- 스털링엔진
- C# textbox 커서 마지막
- 베란타
- C# textbox 커서 시작
- framework
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
