| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- xmlviewer
- advil
- VLOOKUP
- 알뜰
- XML무료뷰어
- 금융감독원API
- applestore
- VS2019
- IFC
- #알뜰폰
- VS2015
- SK7MOBILE
- json #paramquery
- xml뷰어
- 유심무료
- 알뜰요금제
- AWS
- 애드빌용법
- 유니콘
- apple여의도
- 유니콘앱
- vs2017
- 소스비교
- 여의도IFC
- 애드빌
- 광고차단
- productivity Power Tools
- 유니콘광고차단
- OPENDART
- 알뜰유심
- Today
- Total
체크개발자's Blog
Repeater 에서 header와 Item hidden 처리(hide) 본문
protected void AwWorksLists_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
//금융기관조회서만 우편환 반환 금액이 있음. 외에 필요 없음.
if (e.Item.ItemType == ListItemType.Header)
{
HtmlTableCell th1 = (HtmlTableCell)e.Item.FindControl("th_PostAttMoney");
HtmlTableCell th2 = (HtmlTableCell)e.Item.FindControl("th_PostRetMoney");
if (th1 != null) { th1.Visible = false; }
if (th2 != null) { th2.Visible = false; }
}
// /* foreach 문을 사용 */
foreach (RepeaterItem ritem in AwWorksLists.Items)
{
if (ritem.ItemType == ListItemType.AlternatingItem || ritem.ItemType == ListItemType.Item)
{
((HtmlTableCell)ritem.FindControl("td_PostAttMoney")).Visible = false;
((HtmlTableCell)ritem.FindControl("td_PostRetMoney")).Visible = false;
}
}
}
'프로그래밍 > C# .NET' 카테고리의 다른 글
| OpenDART 연동 - 고유번호 (0) | 2020.12.02 |
|---|---|
| OpenDART 연동 - 공시정보 기업개황 준비편 (0) | 2020.12.01 |
| File Encryption and Decryption in C# (0) | 2017.08.07 |
| ScriptX - 웹 인쇄 (0) | 2017.07.20 |
| scriptX - 웹 프린터 설정 (0) | 2017.07.20 |