'Declaration Public Property Editor As Infragistics.Win.EmbeddableEditorBase
public Infragistics.Win.EmbeddableEditorBase Editor {get; set;}
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button95_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button95.Click ' Create an embeddable editor and assign it to OrderDate and ShipDate columns. The UltraGrid ' by default uses DateTimeEditor for editing and rendering date cells. You can change this ' by setting the Editor property to a different editor. Dim textEditor As EditorWithText = New EditorWithText() Me.UltraGrid1.DisplayLayout.Bands(1).Columns("OrderDate").Editor = textEditor Me.UltraGrid1.DisplayLayout.Bands(1).Columns("ShippedDate").Editor = textEditor ' You can also do the same by setting the EditorControl property. UltraCurrencyEditor1 member ' variable is UltraCurrencyEditor control put on the form through the designer. Me.UltraGrid1.DisplayLayout.Bands(2).Columns("Unit Price").EditorControl = Me.UltraCurrencyEditor1 End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button95_Click(object sender, System.EventArgs e) { // Create an embeddable editor and assign it to OrderDate and ShipDate columns. The UltraGrid // by default uses DateTimeEditor for editing and rendering date cells. You can change this // by setting the Editor property to a different editor. EditorWithText textEditor = new EditorWithText( ); this.ultraGrid1.DisplayLayout.Bands[1].Columns["OrderDate"].Editor = textEditor; this.ultraGrid1.DisplayLayout.Bands[1].Columns["ShippedDate"].Editor = textEditor; // You can also do the same by setting the EditorControl property. UltraCurrencyEditor1 member // variable is UltraCurrencyEditor control put on the form through the designer. this.ultraGrid1.DisplayLayout.Bands[2].Columns["Unit Price"].EditorControl = this.ultraCurrencyEditor1; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2