굉장히 오랜만에 게시글 올려요. WPF 용돈기입장 문제(datagrid)
갤2
class mainwindow
private sub mainwindow_loaded(byval sender as object, byval e as system.windows.routedeventargs) handles me.loaded
dglist.add(new bindingdata)
dg.itemssource = dglist
end sub
end class
class bindingdata
public property dgdate as string
get
call calc()
for i as integer = 1 to resphtmlarr.length
resphtmlcutter = resphtmlarr(i).tostring.split(.)
return resphtmlcutter(0).tostring
next
end get
set(byval value as string)
end set
end property
public property dgdetail as string
get
call calc()
for i as integer = 1 to resphtmlarr.length
resphtmlcutter = resphtmlarr(i).tostring.split(.)
return resphtmlcutter(1).tostring
next
end get
set(byval value as string)
end set
end property
public property dginput as string
get
call calc()
for i as integer = 1 to resphtmlarr.length
resphtmlcutter = resphtmlarr(i).tostring.split(.)
return resphtmlcutter(2).tostring
next
end get
set(byval value as string)
end set
end property
public property dgoutput as string
get
call calc()
for i as integer = 1 to resphtmlarr.length
resphtmlcutter = resphtmlarr(i).tostring.split(.)
return resphtmlcutter(3).tostring
next
end get
set(byval value as string)
end set
end property
public property dgchange as string
get
call calc()
for i as integer = 1 to resphtmlarr.length
resphtmlcutter = resphtmlarr(i).tostring.split(.)
return resphtmlcutter(4).tostring
next
end get
set(byval value as string)
end set
end property
end class
이게 vb.net 소스이고
window x:class=mainwindow
xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation
xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml
title=mainwindow height=600 width=800
grid
datagrid x:name=dg autogeneratecolumns=false margin=0 background=green itemssource=dglist
datagrid.columns
datagridtextcolumn header=날짜 width=75 binding={binding dgdate} /
datagridtextcolumn header=사용 내역 width=350 binding={binding dgdetail} /
datagridtextcolumn header=들어온 돈 width=125 binding={binding dginput} /
datagridtextcolumn header=나간 돈 width=125 binding={binding dgoutput} /
datagridtextcolumn header=남은 돈 width=125 binding={binding dgchange} /
/datagrid.columns
/datagrid
/grid
/window
이게 wpf 디자인인데, 이대로 실행을 시키면 맨 첫 줄, 03/03 | 샤프 | 0 | 4000 | 156000밖에 뜨지를 않네요... for문을 돌렸으니 원래 전체 다 떠야하는거 아닌가요? 왜 이러는거죠 ㅠㅠ
누군가 시원하게 답해줄 분을 찾습니다. 저 이거 금요일 오후까지 못 만들면 부수다님께 살해당할지도 몰라요 ㅋㅋㅋ(조크)
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2701151 | 사이트작업시 inputbox 가 readonly 형태표시 어떻게 하시나요? (1) | 찬내 | 2025-07-11 |
2701123 | 간단한 select 질문입니다 (3) | 천사의눈물 | 2025-07-11 |
2701061 | 비베질문.. | 똘끼 | 2025-07-10 |
2701034 | 메일폼 내 script 삽입가능한 방법 없을까요.. (2) | 마음새 | 2025-07-10 |
2701008 | 분명히 버튼을 만들었는데 액션이 안걸립니다. (3) | 재찬 | 2025-07-10 |
2700923 | 전체중앙정렬&독타입&쿼크모드 ㅜㅠ (8) | 푸른들 | 2025-07-09 |
2700893 | 질문드리겠습니다. | 도도한 | 2025-07-09 |
2700793 | 무비클립에 마우스 오버시 랜덤으로 효과음 나기는 어떻게 ;; (1) | 바닐라 | 2025-07-08 |
2700741 | 웹전송? (2) | 연와인 | 2025-07-07 |
2700686 | 카테고리 호버시 세부카테고리 보이게하는 것, css로만 가능할까요?? (3) | 다힘 | 2025-07-07 |
2700658 | 메타태그 질문드립니다..ㅠㅠ;;; | 모해 | 2025-07-07 |
2700632 | 외부에서 이미지 파일을 불러와야 합니다. 도와주세요. (4) | 에일린 | 2025-07-06 |
2700579 | (air + as3) smtp 이용해서 첨부파일 포함해서 메일 보내기 | 물보라 | 2025-07-06 |
2700524 | 클릭시 밑에 메뉴 나오게 (4) | 새솔 | 2025-07-05 |
2700505 | activex를 비쥬얼6.0으로 만들었는데요 비스타 배포시에 안되서 질문드립니다 (3) | 참이 | 2025-07-05 |
2700452 | c언어에서... 자료형 구분.... (3) | 시내 | 2025-07-05 |
2700422 | 버전에 관해 질문 | 라온제나 | 2025-07-04 |
2700393 | mysql이 갑자기!!!!!!!!!!!!!!!에러가;; (2) | 소미 | 2025-07-04 |
2700359 | 3.0 ) SimpleButton 상태 강제 변경 (3) | 희선 | 2025-07-04 |
2700304 | ie8 전용핵 문의 (3) | 여자 | 2025-07-03 |