일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 마이크로소프트
- 단축키
- 태그를 입력해 주세요.
- MSSQL
- 이클립스
- CONVERT()
- ASP
- 오라클
- attr()
- jQuery
- oracle
- windows
- microsoft
- 비주얼스튜디오
- 자바스크립트
- 윈도우
- 리포팅서비스
- aspnet
- 프로시저
- Excel
- 윈폼
- Winform
- MS
- replace()
- javascript
- 엑셀
- SSRS
- IIS
- c#
- DataGrid
Archives
- Today
- Total
DJ메탈짱™의 Free Style
[ASP.NET] GridView, DataList, Repeater Control 순번항목 추가하기 본문
일(job)/MS(Microsoft)
[ASP.NET] GridView, DataList, Repeater Control 순번항목 추가하기
뽀&쏭 2015. 11. 12. 12:431. GridView
<asp:GridView ID="gvRollBook" runat="server" AllowPaging="True" AutoGenerateColumns="False" EnableViewState="False" OnPageIndexChanging="gvRollBook_PageIndexChanging" PageSize="20">
<Columns>
<asp:TemplateField HeaderText="No">
<ItemStyle Width="10px" CssClass="tabletit2" HorizontalAlign="Center" />
<ItemTemplate><%# (Container.DataItemIndex + 1).ToString() %></ItemTemplate>
</asp:TemplateField>
</Columns>
<asp:GridView>
2. DataList, Repeater
<%# (Container.ItemIndex + 1).ToString() %>