첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
유용한 소스 코드가 있으면 icodebroker@naver.com으로 보내주시면 감사합니다.
블로그 자료는 자유롭게 사용하세요.

728x90
반응형

▶ XAML

<Grid
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
    dx:ThemeManager.ThemeName="Office2010Black">
    <dxg:LookUpEdit x:Name="lookUpEdit"
        Width="150"
        Height="25"
        AutoPopulateColumns="False"
        ValueMember="CustomerID" 
        DisplayMember="ContactName">
        <dxg:LookUpEdit.StyleSettings>
            <dxg:SearchLookUpEditStyleSettings />
        </dxg:LookUpEdit.StyleSettings>
        <dxg:LookUpEdit.PopupContentTemplate>
            <ControlTemplate>
                <dxg:GridControl Name="PART_GridControl">
                    <dxg:GridControl.Columns>
                        <dxg:GridColumn FieldName="CompanyName"  />
                        <dxg:GridColumn FieldName="ContactName"  />
                        <dxg:GridColumn FieldName="ContactTitle" />
                        <dxg:GridColumn FieldName="City"         />
                    </dxg:GridControl.Columns>
                    <dxg:GridControl.View>
                        <dxg:TableView />
                    </dxg:GridControl.View>
                </dxg:GridControl>
            </ControlTemplate>
        </dxg:LookUpEdit.PopupContentTemplate>
    </dxg:LookUpEdit>
</Grid>

 

▶ C#

this.lookUpEdit.ItemsSource = new NorthwindDataSetTableAdapters.CustomersTableAdapter().GetData();

 

728x90
반응형
Posted by 사용자 icodebroker

댓글을 달아 주세요