모바일 오유 바로가기
http://m.todayhumor.co.kr
분류 게시판
베스트
  • 베스트오브베스트
  • 베스트
  • 오늘의베스트
  • 유머
  • 유머자료
  • 유머글
  • 이야기
  • 자유
  • 고민
  • 연애
  • 결혼생활
  • 좋은글
  • 자랑
  • 공포
  • 멘붕
  • 사이다
  • 군대
  • 밀리터리
  • 미스터리
  • 술한잔
  • 오늘있잖아요
  • 투표인증
  • 새해
  • 이슈
  • 시사
  • 시사아카이브
  • 사회면
  • 사건사고
  • 생활
  • 패션
  • 패션착샷
  • 아동패션착샷
  • 뷰티
  • 인테리어
  • DIY
  • 요리
  • 커피&차
  • 육아
  • 법률
  • 동물
  • 지식
  • 취업정보
  • 식물
  • 다이어트
  • 의료
  • 영어
  • 맛집
  • 추천사이트
  • 해외직구
  • 취미
  • 사진
  • 사진강좌
  • 카메라
  • 만화
  • 애니메이션
  • 포니
  • 자전거
  • 자동차
  • 여행
  • 바이크
  • 민물낚시
  • 바다낚시
  • 장난감
  • 그림판
  • 학술
  • 경제
  • 역사
  • 예술
  • 과학
  • 철학
  • 심리학
  • 방송연예
  • 연예
  • 음악
  • 음악찾기
  • 악기
  • 음향기기
  • 영화
  • 다큐멘터리
  • 국내드라마
  • 해외드라마
  • 예능
  • 팟케스트
  • 방송프로그램
  • 무한도전
  • 더지니어스
  • 개그콘서트
  • 런닝맨
  • 나가수
  • 디지털
  • 컴퓨터
  • 프로그래머
  • IT
  • 안티바이러스
  • 애플
  • 안드로이드
  • 스마트폰
  • 윈도우폰
  • 심비안
  • 스포츠
  • 스포츠
  • 축구
  • 야구
  • 농구
  • 바둑
  • 야구팀
  • 삼성
  • 두산
  • NC
  • 넥센
  • 한화
  • SK
  • 기아
  • 롯데
  • LG
  • KT
  • 메이저리그
  • 일본프로야구리그
  • 게임1
  • 플래시게임
  • 게임토론방
  • 엑스박스
  • 플레이스테이션
  • 닌텐도
  • 모바일게임
  • 게임2
  • 던전앤파이터
  • 마비노기
  • 마비노기영웅전
  • 하스스톤
  • 히어로즈오브더스톰
  • gta5
  • 디아블로
  • 디아블로2
  • 피파온라인2
  • 피파온라인3
  • 워크래프트
  • 월드오브워크래프트
  • 밀리언아서
  • 월드오브탱크
  • 블레이드앤소울
  • 검은사막
  • 스타크래프트
  • 스타크래프트2
  • 베틀필드3
  • 마인크래프트
  • 데이즈
  • 문명
  • 서든어택
  • 테라
  • 아이온
  • 심시티5
  • 프리스타일풋볼
  • 스페셜포스
  • 사이퍼즈
  • 도타2
  • 메이플스토리1
  • 메이플스토리2
  • 오버워치
  • 오버워치그룹모집
  • 포켓몬고
  • 파이널판타지14
  • 배틀그라운드
  • 기타
  • 종교
  • 단어장
  • 자료창고
  • 운영
  • 공지사항
  • 오유운영
  • 게시판신청
  • 보류
  • 임시게시판
  • 메르스
  • 세월호
  • 원전사고
  • 2016리오올림픽
  • 2018평창올림픽
  • 코로나19
  • 2020도쿄올림픽
  • 게시판찾기
  • 오유인페이지
    개인차단 상태
    nyamnyam10님의
    개인페이지입니다
    가입 : 18-11-07
    방문 : 2회
    닉네임변경 이력
    회원차단
    회원차단해제
    게시물ID : programmer_22682
    작성자 : nyamnyam10
    추천 : 0
    조회수 : 616
    IP : 121.152.***.246
    댓글 : 1개
    등록시간 : 2018/11/07 14:53:54
    http://todayhumor.com/?programmer_22682 모바일
    GridView 의 아이템이 선택되도록 하고싶습니다
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0" style="font-family:'돋움';font-size:12px;color:#333333;line-height:18px;"><tbody><tr><td colspan="2" valign="top"><br><p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;"><br>GridView 의 아이템이 선택되도록 하고싶습니다.</p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;"> </p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;">GridView를 이용하여 list 데이터를 보여주고 있습니다. <br>그리고 특정 셀에 대해서는 내용을 변경하여 db 에 저장하려고 합니다.</p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;">GridView 에 TextBox를 올려서 보여주는것 까지는 되었는데 문제가 있어서 이렇게 글을 남깁니다.</p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;"><br></p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;">item을 선택하면 focus가 잡힙니다. <br>그런데 item 을 선택하지 않고 textbox만 선택하면 item 선택이 되지 않습니다.</p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;">textbox를 선택하면 해당 item 이 선택되도록 하고 싶습니다. <br>어떻게 해야 되면 좋을지 조언 부탁드리겠습니다.</p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;"><br></p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;"><br></p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;"><br></p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;"><br></p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;">private void LstView_textOut(object sender, RoutedEventArgs e)<br>{<br>     TextBox aa = (TextBox)sender;     <br>     string txt = aa.Text();                        // 텍스트는 가져옴.<br>     <br>     ttData td = (ttData)lst.SelectedItem;     // item 선택이 안된 상태라 td 값이 null 임. <br>     // textbox가 아닌 item을 선택한 후 이 함수 실행하면 td값이 정상적으로 나옴.<br>}</p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;"><br></p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;">private void <span style="font-family:'돋움';font-size:12px;">LstView_textIn(</span><span style="font-family:'돋움';font-size:12px;">object sender, RoutedEventArgs e)</span></p><span style="font-family:'굴림';font-size:13.3333px;">{<br><span style="white-space:pre;"> </span>// 여기서 선택한 text box 의 아이템을 선택한것처럼 하고 싶습니다. <br>}<br></span> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;"><br></p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;"><br></p> <p style="font-size:10pt;margin-bottom:0px;font-family:'굴림';margin-top:0px;line-height:1.2;"><br><Grid><br>        <ListView Name="lst" IsSynchronizedWithCurrentItem="True"><br>            <ListView.View><br>                <GridView><br>                    <GridViewColumn DisplayMemberBinding="{Binding Path=cat_id}" Header="Idx" Width="80"></GridViewColumn> <br>                    <GridViewColumn DisplayMemberBinding="{Binding Path=tt_id}" Header="tt" Width="200"></GridViewColumn><br>                    <GridViewColumn  Header="eng" Width="200"><br>                        <GridViewColumn.CellTemplate><br>                            <DataTemplate><br>                                <TextBox Text="{Binding Path=tt_data}" Width="150" LostFocus="LstView_textOut" GotFocus="LstView_textIn" /><br>                            </DataTemplate><br>                        </GridViewColumn.CellTemplate><br>                    </GridViewColumn><br>                </GridView><br>            </ListView.View><br>        </ListView><br>    </Grid></p></td></tr></tbody></table>

    이 게시물을 추천한 분들의 목록입니다.
    푸르딩딩:추천수 3이상 댓글은 배경색이 바뀝니다.
    (단,비공감수가 추천수의 1/3 초과시 해당없음)

    죄송합니다. 댓글 작성은 회원만 가능합니다.

    번호 제 목 이름 날짜 조회 추천
    GridView 의 아이템이 선택되도록 하고싶습니다 [1] nyamnyam10 18/11/07 14:53 42 0
    [1]
    단축키 운영진에게 바란다(삭제요청/제안) 운영게 게시판신청 자료창고 보류 개인정보취급방침 청소년보호정책 모바일홈