Infragistics(R) NetAdvantage(R) Windows Forms
ColumnKey Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGridCellProxy Class : ColumnKey Property

Gets or sets the key of the column of the grid with which the editor should be associated.

Syntax

Visual Basic (Declaration) 
Public Property ColumnKey As String
C# 
public string ColumnKey {get; set;}

Example

The following snippet demonstrates how to create a new UltraGridCellProxy instance and associate it with a column of the UltraGridRowEditTemplate

Visual BasicCopy 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);
}

Remarks

Note: If the specified column does not exist in the band associated with the RowEditTemplate, or the template is not currently associated with a band, the proxy will be disabled, showing a message as its value at design-time.

See Also