This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void grdName_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs args) | |
{ | |
foreach (Infragistics.Win.UltraWinGrid.UltraGridColumn col in grdName.DisplayLayout.Bands[0].Columns) | |
{ | |
if(col.Key == "DB_Col_Name_1") | |
{ | |
col.Header.Caption = "Column Name 1"; | |
col.Width = 100; | |
col.Header.VisiblePosition = 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Exit, Enter Cell Edit mode when user navigates grid column cells with Up, Down Keys in UltraGrid | |
private void grdName_KeyDown(object sender, System.Windows.Forms.KeyEventArgs args) | |
{ | |
if ((args.KeyCode == Keys.Down)) | |
{ | |
grdAttributes.PerformAction(UltraGridAction.ExitEditMode); | |
grdAttributes.PerformAction(UltraGridAction.BelowCell); | |
args.Handled = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void oTrans_adapter_BeforeAdapterMethod(object sender, BeforeAdapterMethodArgs args) | |
{ | |
switch (args.MethodName) | |
{ | |
case "GetRows": //"GetList" | |
System.Collections.ArrayList myCols; | |
EpiSearchColumn col0; | |
EpiSearchColumn col1; | |
// Paramters: Data Column Name, Column Header Text, Width, Is Result, Position |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add a reference to Ice.Core.Session dll | |
private string company; | |
private string plantId; | |
private string userId; | |
public void InitializeCustomCode() | |
{ | |
... | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Infragistics.Win; | |
using Infragistics.Win.UltraWinGrid; | |
private void grdGridName_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs args) | |
{ | |
grdGridName.DisplayLayout.Bands[0].Columns["ColumnName"].EditorControl = cmbCustomerLanguage; | |
grdGridName.DisplayLayout.Bands[0].Columns["ColumnName"].CellActivation = Activation.NoEdit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void oTrans_adapter_BeforeAdapterMethod(object sender, BeforeAdapterMethodArgs args) | |
{ | |
switch (args.MethodName) | |
{ | |
case "GetRows": | |
{ | |
System.Collections.ArrayList myCols; | |
EpiSearchColumn col1; | |
// Paramters: Data Column Name, Column Header Text, Width, Is Result, Position | |
col1 = new EpiSearchColumn("Key1", "a", -1, true, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EpiDataView edvViewName = ((EpiDataView)(this.oTrans.EpiDataViews["ViewName"])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Reflection; | |
public class Script | |
{ | |
Infragistics.Win.UltraWinDock.UltraDockManager dock; | |
public void InitializeCustomCode() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JobEntryAdapter adapterJobEntry = new JobEntryAdapter(this.oTrans); | |
adapterJobEntry.BOConnect(); | |
DataSet dsJobDetails = adapterJobEntry.GetData(jobNum); | |
DataRow dr = adapterJobEntry.JobEntryData.JobHead.Rows[0]; | |
dr.BeginEdit(); | |
dr["FieldName_c"] = newValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add a reference to "Ice.Contracts.Bo.DynamicQuery" | |
public struct BaqParam | |
{ | |
public BaqParam(string paramName, string paramType, string paramValue) | |
{ | |
this.ParamName = paramName; | |
this.ParamType = paramType; | |
this.ParamValue = paramValue; |
NewerOlder