[FLEX] 현재 창에 출력된 DATAGRID의 행수 구하기
Computer_IT/FLEX_AIR2008. 10. 14. 09:37
반응형
var numItemsInWindow:int = ICollectionView(dataGrid.dataProvider).length - dataGrid.maxVerticalScrollPosition;
출처 : Flex Developer Center http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=4741
반응형
'Computer_IT > FLEX_AIR' 카테고리의 다른 글
XMLSocket for Server Push (0) | 2009.10.22 |
---|---|
FlashBuilder 4 Beta2 시리얼 받기 (0) | 2009.10.14 |
[AIR] 투명 Windows - Transparent (0) | 2008.10.13 |
한글 Flash ActionScript 3.0 Reference Document (0) | 2008.08.25 |
Flash Sample... (0) | 2008.05.20 |
[VB] Microsoft FlexGrid Control 6.0 Example
Computer_IT/VisualBasic2006. 9. 12. 10:39
반응형
- Option Explicit
- Private Sub cmdAdd_Click()
- Dim Rc As Integer ' RowCount
- Dim Kor As Integer, Eng As Integer, Math As Integer, Tot As Integer
- Dim ave As Single
- If Trim(txtName) = "" Then
- MsgBox "이름을 입력해줄래??"
- Exit Sub
- End If
- Rc = FGrid1.Rows
- FGrid1.Rows = Rc + 1
- ' 입력값 계산
- Kor = Val(txtKor)
- Eng = Val(txtEng)
- Math = Val(txtMath)
- Tot = Kor + Eng + Math
- ave = Round(Tot / 3, 2) ' 반올림 소수 2째 자리
- ' Flex Grid 에 값 넣기..
- FGrid1.TextMatrix(Rc, 0) = txtName
- FGrid1.TextMatrix(Rc, 1) = txtKor
- FGrid1.TextMatrix(Rc, 2) = txtEng
- FGrid1.TextMatrix(Rc, 3) = txtMath
- FGrid1.TextMatrix(Rc, 4) = Tot
- FGrid1.TextMatrix(Rc, 5) = ave
- ' 입력값 공백으로...
- txtName = ""
- txtKor = ""
- txtEng = ""
- txtMath = ""
- txtName.SetFocus
- End Sub
- Private Sub Form_Load()
- FGrid1.Rows = 1
- End Sub
반응형
'Computer_IT > VisualBasic' 카테고리의 다른 글
[VB] Access OLEDB & Access Passworld, 암호 설정되어있을시 연결문자열 (0) | 2006.12.09 |
---|---|
[VB] MSN Style Notification Messages 구현소스 (1) | 2006.11.08 |
[VB] Visual Basic 6 - IDE에서 MouseWheel 사용 (0) | 2006.09.19 |
[VB] 키보드의 대문자만 입력 (0) | 2006.09.12 |
[VB] 종료시 확인하기, Terminate 시 확인 (0) | 2006.09.12 |