RadGrid for ASP.NET

RadGrid Send comments on this topic.
ActiveItemStyle Property
See Also 
Telerik.WebControls Namespace > RadGrid Class : ActiveItemStyle Property


Gets a reference to the GridTableItemStyle object that allows you to set the appearance of the active item in a Telerik RadGrid control.   

 

Namespace: Telerik.WebControls
Assembly: RadGrid (in RadGrid.dll)

Syntax

Visual Basic (Declaration) 
Public Overridable ReadOnly Property ActiveItemStyle As GridTableItemStyle
Visual Basic (Usage)Copy Code
Dim instance As RadGrid
Dim value As GridTableItemStyle
 
value = instance.ActiveItemStyle
C# 
public virtual GridTableItemStyle ActiveItemStyle {get;}

Return Value

A reference to the GridTableItemStyle that represents the style of the actibe item in a Telerik RadGrid control.

Example

The following code example demonstrates how to use the SelectedItemStyle property to define a custom style for the active item in a Telerik RadGrid control.

Remarks

Use the ActiveItemStyle property to control the appearance of the active item in a Telerik RadGrid control. This property is read-only; however, you can set the properties of the GridTableItemStyle object it returns. The properties can be set declaratively using one of the following methods:

  • Place an attribute in the opening tag of the Telerik RadGrid control in the form Property-Subproperty, where Subproperty is a property of the GridTableItemStyle object (for example, ActiveItemStyle-ForeColor).
  • Nest a <ActiveItemStyle> element between the opening and closing tags of the Telerik RadGrid control.

The properties can also be set programmatically in the form Property.Subproperty (for example, ActiveItemStyle.ForeColor). Common settings usually include a custom background color, foreground color, and font properties.

Requirements

Supported in: 3.0, 2.0, 1.1, 1.0 .NET Framework

See Also