Resizing Combo Dropdown Columns
来源:互联网 发布:淘宝客怎样才能赚钱 编辑:程序博客网 时间:2024/06/03 03:42
using Infragistics.Win.UltraWinGrid;
public class Script
{
// Add Custom Module Level Variables Here **
private Erp.UI.Controls.Combos.JobMtlSearchCombo cboPOLnMtl;
public void InitializeCustomCode()
{
// Begin Wizard Added Custom Method Calls
cboPOLnMtl= (Erp.UI.Controls.Combos.JobMtlSearchCombo)csm.GetNativeControlReference("Your_Control_GUID_Here");
this.cboPOLnMtl.BeforeDropDown += new System.ComponentModel.CancelEventHandler(this.cboPOLnMtl_BeforeDropDown);
this.cboPOLnMtl.InitializeLayout += new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this.cboPOLnMtl_InitializeLayout);
// End Wizard Added Custom Method Calls
}
public void DestroyCustomCode()
{
// Begin Custom Code Disposal
this.cboPOLnMtl.BeforeDropDown -= new System.ComponentModel.CancelEventHandler(this.cboPOLnMtl_BeforeDropDown);
this.cboPOLnMtl.InitializeLayout -= new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this.cboPOLnMtl_InitializeLayout);
cboPOLnMtl = null;
// End Custom Code Disposal
}
// Following allows column sizing
private void cboPOLnMtl_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs args)
{
args.Layout.Override.AllowColSizing = AllowColSizing.Free;
args.Layout.PerformAutoResizeColumns(true, PerformAutoSizeType.AllRowsInBand,true);
}
// Following sets drop down and/or column widths.
private void cboPOLnMtl_BeforeDropDown(object sender, System.ComponentModel.CancelEventArgs args)
{
//cboPOLnMtl.DropDownWidth = 200;
cboPOLnMtl.DisplayLayout.Bands[0].Columns[0].Width = 30;
cboPOLnMtl.DisplayLayout.Bands[0].Columns[1].Width = 80;
}
}
public class Script
{
// Add Custom Module Level Variables Here **
private Erp.UI.Controls.Combos.JobMtlSearchCombo cboPOLnMtl;
public void InitializeCustomCode()
{
// Begin Wizard Added Custom Method Calls
cboPOLnMtl= (Erp.UI.Controls.Combos.JobMtlSearchCombo)csm.GetNativeControlReference("Your_Control_GUID_Here");
this.cboPOLnMtl.BeforeDropDown += new System.ComponentModel.CancelEventHandler(this.cboPOLnMtl_BeforeDropDown);
this.cboPOLnMtl.InitializeLayout += new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this.cboPOLnMtl_InitializeLayout);
// End Wizard Added Custom Method Calls
}
public void DestroyCustomCode()
{
// Begin Custom Code Disposal
this.cboPOLnMtl.BeforeDropDown -= new System.ComponentModel.CancelEventHandler(this.cboPOLnMtl_BeforeDropDown);
this.cboPOLnMtl.InitializeLayout -= new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this.cboPOLnMtl_InitializeLayout);
cboPOLnMtl = null;
// End Custom Code Disposal
}
// Following allows column sizing
private void cboPOLnMtl_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs args)
{
args.Layout.Override.AllowColSizing = AllowColSizing.Free;
args.Layout.PerformAutoResizeColumns(true, PerformAutoSizeType.AllRowsInBand,true);
}
// Following sets drop down and/or column widths.
private void cboPOLnMtl_BeforeDropDown(object sender, System.ComponentModel.CancelEventArgs args)
{
//cboPOLnMtl.DropDownWidth = 200;
cboPOLnMtl.DisplayLayout.Bands[0].Columns[0].Width = 30;
cboPOLnMtl.DisplayLayout.Bands[0].Columns[1].Width = 80;
}
}
阅读全文
0 0
- Resizing Combo Dropdown Columns
- dropdown
- [Netadvantage:Combo+DropDown]如何根据下拉框选中的数据获取相关的数据
- combo
- resizing dialog
- Window Resizing
- DropDown Demonstration
- dropdown gridview
- Resizing Controls at Runtime
- SoftICE Window Resizing Commands
- resizing applet in browser
- Oracle dynamic instance resizing
- UIModalPresentationFormSheet resizing view
- Lesson 3 Matrix Resizing
- Resizing VirtIO devices
- Resizing and Reshaping Matrices
- POJ_1617_Crypto Columns
- Crypto Columns
- muduo网络库
- 2017 计蒜之道 初赛 第五场——A. UCloud 机房的网络搭建
- Jedis的简单使用
- Android5.0使用全透明状态栏
- android 选择图片
- Resizing Combo Dropdown Columns
- Android中检测App是否安装的方法.
- 网易饥饿的小易
- Ubuntu14.04下载、编译Android 6.0源码,并导入Android Studio
- [HDU3861]The King's Problem(Tarjan缩点+二分图匹配)
- linux下使用yum安装MySQL
- Postman的基本使用
- 把编程当做一种乐趣,尽情的折磨自己吧。
- iOS-关于应用/视图的生命周期及程序启动原理小结