본문 바로가기
반응형

GridView6

[개발/ASP] Creating GridView Columns Dynamically (Part 1) Creating GridView Columns Dynamically (Part 1) http://www.dotnetbips.com/articles/56fadcb9-ee8b-4170-a6ad-cd4f38222bcb.aspxCreating GridView Columns Dynamically (Part 1)IntroductionMany months back I wrote three articles - Creating DataGrid Programmatically, Creating DataGrid Templated Columns Dynamically - Part I and Creating DataGrid Templated Columns Dynamically - Part II. Even today these ar.. 2015. 2. 24.
[개발/asp.net] DataGrid, DataList, Repeater에서 순차적인 번호 표시 ItemIndex 속성을 사용하여 DataGrid, DataList, Repeater 컨트롤의 Items 컬렉션에서 가져온 DataGridItem, DataListItem, Repeateritem 개체의 인덱스 번호를 확인합니다. 위에서 1을 더해주는 이유는 ItemIndex가 0부터 시작하기 때문에 1부터 표시해주기 위해서 이다. 쌈꼬쪼려 소백촌닭 2010. 12. 1.
[개발/asp.net] 웹페이지의 DataGrid 내용만 엑셀로 다운로드 현재 페이지에 표시된 DataGrid의 내용을 버튼클릭시 다운로드 하는 소스입니다. 필요해서 한번 해봤는데 되네요.. DataList나 Repeater 등 모든 서버컨트롤이나 HTML컨트롤에도 사용 가능합니다! *^^* private void Button1_Click(object sender, System.EventArgs e) { System.Web.HttpContext.Current.Response.Buffer = true; System.Web.HttpContext.Current.Response.AddHeader ("Content-Disposition", "attachment;filename=20050614.xls"); System.Web.HttpContext.Current.Response.Conte.. 2010. 11. 23.
[개발] Working with GridView without using Data Source Con.. Introduction There are many articles and tutorials around that illustrate the use of GridView control along with the new Data Source Controls. When attached with a Data Source control GridView performs tasks such as paging, sorting and editing automatically i.e. without writing any code. However, at times you require to bind the GridView with a DataView or DataTable directly. Fortunately GridVie.. 2010. 11. 4.
[개발] GridView에서 DataFormatString 적용 안되는 문제.. GridView에서 DataFormatString 을 적용했는데... 반영이 안되는 문제가 발생한다. 이런 경우 HtmlEncode 의 속성값(default: true)을 False로 해주면 해결된다. 예를 들면... 두 그림을 보면 달라진 점은 ModifiedDate 필드에 날짜 형식이 바뀐것을 확인 할 수 있다. DateTime type인 ModifiedDate에 DataFormatString을 적용했다. 아래 소스 10줄에 굵은 부분을 확인... 1 2 3 4 5 6 7 8 9 10 11 12 2010. 11. 1.
[ASP.NET] GridView의 스크롤기능을 추가했을경우 사용되는 Div 태그의 Width 값 해상도에 맞게 설정해 주기 GridView에 스크롤기능을 넣기위해 Div 태그를 사용했다. 문제가 Div 태그의 Width 값을 100% 로 주었을경우 Div내에 있는 GridView의 Width값에 따라 늘어나는 것이었다. GridView의 Width값과 상관없이 모니터의 해상도에 맞게 Div 태그의 Width값을 설정해주기 위한 방법입니다. 1. Div 태그내에 width=2000 인 GridView 추가 .. 생략 2. 태그 마지막 부분에 Div 태그의 Width값을 설정해주는 script function 추가 .. 상위소스 생략 3. Div 태그 Width값 설정 script function 추가 4. 완료. 이렇게하면 Div내에 위치한 GridView의 Width값에 상관없이 해상도에 맞게 Div태그의 Width값을 설정.. 2010. 10. 25.
반응형