일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 알뜰
- applestore
- advil
- VS2019
- 알뜰유심
- 소스비교
- apple여의도
- 금융감독원API
- VLOOKUP
- json #paramquery
- 유심무료
- productivity Power Tools
- 광고차단
- xml뷰어
- 애드빌용법
- #알뜰폰
- XML무료뷰어
- xmlviewer
- 유니콘
- 유니콘광고차단
- 여의도IFC
- SK7MOBILE
- VS2015
- AWS
- 알뜰요금제
- OPENDART
- vs2017
- 유니콘앱
- IFC
- 애드빌
- 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 |