Version

CellClickAction Property

Determines what happens when the user clicks on a field cell
Syntax
'Declaration
 
Public Property CellClickAction As CellClickAction
public CellClickAction CellClickAction {get; set;}
Example
The following example demonstrates how to create a FieldLayout and add it to the FieldLayouts property of a DataPresenterBase derived control. It also demonstrates how to create and initialize the FieldSettings of a FieldLayout and create the Fields that will make up that FieldLayout including the use of UnboundField instances.
<igDP:XamDataGrid x:Name="XamDataGrid12" BindToSampleData="true">
    
<igDP:XamDataGrid.FieldLayouts>
        
<!-- define a field layout that will match the data -->
        
<igDP:FieldLayout>

            
<!-- initialize settings for the fields in this specific field layout -->
            
<igDP:FieldLayout.FieldSettings>
                
<igDP:FieldSettings CellClickAction="SelectRecord"/>
            
</igDP:FieldLayout.FieldSettings>

            
<!-- define the fields for the field layout -->
            
<igDP:FieldLayout.Fields>
                
<igDP:Field Name="name" Label="Name"/>
                
<igDP:Field Name="department" Label="Dept." />
                
<igDP:Field Name="salary" Label="Salary"/>
                
<igDP:Field Name="email" Label="Email"/>
                
<!--
                    The XamDataGrid allows you to include Unbound Fields in a
                    FieldLayout. This sample shows how you can use
                    Unbound Fields to include calculated values. 
-->
                
<igDP:UnboundField Name="SubTotal" Label="Sub-total"></igDP:UnboundField>
                
<igDP:UnboundField Name="SalesTax" Label="Sales Tax (7%)" />
                
<igDP:UnboundField Name="Total" Label="Total" DataType="{x:Type sys:Decimal}"></igDP:UnboundField>
            
</igDP:FieldLayout.Fields>

        
</igDP:FieldLayout>
    
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also