해당 datawindow의 constructor event
This.of_SetBase(True)
This.of_SetSort(True)
This.inv_base.of_SetColumnNameSource(2) // header로 sort
This.inv_sort.of_SetUseDisplay(True) // dddw같은 경우 display value로 sort
This.inv_sort.of_SetColumnHeader(True)
// DATAWINDOW COLUMN을 자동으로 Modify
Integer i, li_column_count
String ls_column_name, ls_modify
li_column_count = Integer(This.Describe("DataWindow.Column.Count"))
IF li_column_count = 0 THEN RETURN
FOR i=1 TO li_column_count
ls_column_name = This.Describe('#' + String(i) + '.Name')
IF This.Describe(ls_column_name + '.Visible') = '1' THEN
ls_modify = ls_modify + ls_column_name + &
".Border='0~tif (getrow() = currentrow(), 6, 0) '"
ls_modify = ls_modify + ls_column_name + &
".color='0~tif (getrow() = currentrow(), rgb(255,0,0), 0) '"
=> 선택한 row의 글씨 색상을 빨간색으로 변경
END IF
NEXT
This.Modify(ls_modify)