论坛首页 编程语言技术论坛

如何使DataGrid中某一列变为手型

浏览 2853 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2009-03-24  

可以使用linkButton,看代码吧

 

   <mx:DataGrid id="dgdRESULT" fontSize="12"
    headerStyleName="GrideHeaderStyle"
    horizontalScrollPolicy="off"
    doubleClickEnabled="true"
       width="100%"
       height="100%"
                itemClick="local.clickCell(event)"
                itemDoubleClick="local.clickRow(event)"       
                verticalScrollPolicy="on" horizontalGridLines="true" backgroundAlpha="1.0"
                rowHeight="20"
                >
    <mx:columns>
                    <mx:DataGridColumn id="dgcRowNumber" dataField="ROWNUMBER" textAlign="center" width="55"/>
                    <mx:DataGridColumn id="dgcRadioButton" textAlign="center" width="65">
                    <mx:itemRenderer>
                     <mx:Component>
                         <mx:RadioButton textAlign="center" width="55"/>
                     </mx:Component>
           </mx:itemRenderer>
                    </mx:DataGridColumn>
     <mx:DataGridColumn id="dgcPATTERN_CD" dataField="GUIDE_PATTERN_CODE" width="160" textAlign="center" backgroundColor="#9db4ec">
                     <mx:itemRenderer>
                      <mx:Component>
                       <mx:LinkButton label="{data.GUIDE_PATTERN_CODE}" fontWeight="normal" fontSize="12" fontFamily="MS ゴシック"/>
                      </mx:Component>
                     </mx:itemRenderer>
     </mx:DataGridColumn>

     <mx:DataGridColumn id="dgcPATTERN_NAME" dataField="PATTERN_NAME" width="230" textAlign="left"/>
     <mx:DataGridColumn id="dgcSIGNER" dataField="CHARGER_NM" width="260" textAlign="left"/>
     <mx:DataGridColumn id="dgcAPPLICATION" dataField="APPLICATION_MEDIA" width="130" textAlign="left"/>
     <mx:DataGridColumn id="dgcREGISTRATION" dataField="INTERIM_REGISTRATION_SITE" width="130" textAlign="left"/>
     <mx:DataGridColumn id="dgcVALID_FLG" dataField="VALID_FLG" width="90" textAlign="center"/>
    </mx:columns>
   </mx:DataGrid>

论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics