첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
------------------------------------------------------------------------------------------------------------------------------------------------------
728x90
728x170
using System.Drawing;
using System.Windows.Forms;

using Infragistics.Win.UltraWinGrid;

private OpenFileDialog openFileDialog;

...

#region UltraGrid 셀 더블 클릭시 처리하기 - ultraGrid_DoubleClickCell(sender, e)

/// <summary>
/// UltraGrid 셀 더블 클릭시 처리하기
/// </summary>
/// <param name="sender">이벤트 발생자</param>
/// <param name="e">이벤트 인자</param>
private void ultraGrid_DoubleClickCell(object sender, DoubleClickCellEventArgs e)
{
    switch(e.Cell.Column.Key)
    {
        case "EmployeeImage" :

            if(this.openFileDialog.ShowDialog() == DialogResult.OK)
            {
                Employee employee = e.Cell.Row.ListObject as Employee;

                employee.EmployeeImage = Image.FromFile(this.openFileDialog.FileName);
            }

            break;
    }
}

#endregion

※ Employee 클래스 정의는 생략한다.

728x90
그리드형(광고전용)
Posted by icodebroker
,