Intersoft ClientUI Documentation
GenerateElement Method
See Also  Send Feedback
Intersoft.Client.UI.Data Namespace > UXGridViewTemplateColumn Class : GenerateElement Method






cell
The cell that will contain the generated element.
dataItem
The data item represented by the row that contains the intended cell.
Gets an element defined by the CellTemplate that is bound to the column's Binding property value.

Syntax

Visual Basic (Declaration) 
Protected Overrides Function GenerateElement( _
   ByVal cell As UXGridViewCell, _
   ByVal dataItem As Object _
) As FrameworkElement
Visual Basic (Usage)Copy Code
Dim instance As UXGridViewTemplateColumn
Dim cell As UXGridViewCell
Dim dataItem As Object
Dim value As FrameworkElement
 
value = instance.GenerateElement(cell, dataItem)
C# 
protected override FrameworkElement GenerateElement( 
   UXGridViewCell cell,
   object dataItem
)
Delphi 
protected function GenerateElement( 
    cell: UXGridViewCell;
    dataItem: TObject
): FrameworkElement; override; 
JScript 
protected override function GenerateElement( 
   cell : UXGridViewCell,
   dataItem : Object
) : FrameworkElement;
Managed Extensions for C++ 
protected: FrameworkElement* GenerateElement( 
   UXGridViewCell* cell,
   Object* dataItem
) override 
C++/CLI 
protected:
FrameworkElement^ GenerateElement( 
   UXGridViewCell^ cell,
   Object^ dataItem
) override 

Parameters

cell
The cell that will contain the generated element.
dataItem
The data item represented by the row that contains the intended cell.

Return Value

A new, read-only element that is bound to the column's Binding property value.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.