| Visual Basic (Declaration) | |
|---|---|
Public Class UltraGridCellProxy Inherits Infragistics.Win.UltraEditorProxyBase Implements Infragistics.Shared.IUltraLicensedComponent, Infragistics.Win.AppStyling.ISupportAppStyling, Infragistics.Win.IUltraControl, Infragistics.Win.IUltraControlElement | |
| C# | |
|---|---|
public class UltraGridCellProxy : Infragistics.Win.UltraEditorProxyBase, Infragistics.Shared.IUltraLicensedComponent, Infragistics.Win.AppStyling.ISupportAppStyling, Infragistics.Win.IUltraControl, Infragistics.Win.IUltraControlElement | |
The following snippet demonstrates how to create a new UltraGridCellProxy instance and associate it with a column of the UltraGridRowEditTemplate
| Visual Basic | Copy Code |
|---|---|
Imports Infragistics.Win.UltraWinGrid Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Create a new instance of a proxy Dim proxy As New UltraGridCellProxy() ' Set the ColumnKey property to the name of a column of a band that the ' associated RowEditTemplate is bound to proxy.ColumnKey = "Column 1" ' Add the proxy to the RowEditTemplate's Controls collection Me.UltraGridRowEditTemplate1.Controls.Add(proxy) End Sub | |
| C# | Copy Code |
|---|---|
using Infragistics.Win.UltraWinGrid; private void Form1_Load(object sender, EventArgs e) { // Create a new instance of a proxy UltraGridCellProxy proxy = new UltraGridCellProxy(); // Set the ColumnKey property to the name of a column of a band that the // associated RowEditTemplate is bound to proxy.ColumnKey = "Column 1"; // Add the proxy to the RowEditTemplate's Controls collection this.ultraGridRowEditTemplate1.Controls.Add(proxy); } | |
A proxy functions by hosting the editor that the associated UltraGridCell would use within its bounds. This control can be thought of as taking the cell and moving it onto the template, but otherwise behaving as if the actual cell were being edited, including firing the events associated with editing or activating the cell.
Note: The proxy will only function when placed on a RowEditTemplate or within a child control of a RowEditTemplate.