Where The Streets Have No Name

엑셀처럼 컬럼 숨기기 본문

Developement/RIA

엑셀처럼 컬럼 숨기기

highheat 2006. 8. 22. 16:24
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html" charset="ks_c_5601">
 <link rel=StyleSheet type="text/css" href="../samplecss.css">
 <script language=JavaScript>
  function Fn_Change() {
   tb_Grid.ColumnProp('Partno','Show') = true;
   tb_Grid.ColumnProp('Partnm','Show') = true;
   tb_Grid.ColumnProp('Price','Show') = true;
   tb_Grid.ColumnProp('Vendor','Show') = true;
   tb_Grid.ColumnProp('Status','Show') = true;
  }
 </script>
 <script language=JavaScript for=tb_Grid event=OnRButtonDown(row,colid,xpos,ypos)>
  tb_Grid.ColumnProp(colid,'Show') = false;
 </script>
 <object id=tb_DataSet classid=CLSID:3267EA0D-B5D8-11D2-A4F9-00608CEBEE49>
  <param name=DataID  value="Column_Basic_data.csv">
 </object>
</head>
<body>
 <table frame=box width=456><tr><td>ID, Name(=Title), Width(=Size)</td>
  <td width=160>Grid ( Format, ColumnProp )</td></tr></table><br>
 <u><small>Change Column ID</small></u>

 <input type=button value="Reset" onClick="Fn_Change()">
 <br><br>
 <object id=tb_Grid classid=CLSID:1F57AEAD-DB12-11D2-A4F9-00608CEBEE49
   height=320 width=456>
  <param name="DataID"  value='tb_DataSet'>
  <param name="Format"  value='
   <C>ID=Partno name="Part No"  width=90 align=Center</C>
   <C>ID=Partnm name="Part Name" width=110</C>
   <C>ID=Price  name="Price"  width=80</C>
   <C>ID=Vendor name="Vendor"  width=70</C>
   <C>ID=Status name="Status"  width=70</C>'>
 </object>
</body>
</html>