Class GridViewRowInfo
This class contains logical information about a row of tabular data which is presented in the Rad
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public abstract class GridViewRowInfo : IDataItem, IHierarchicalRow, INotifyPropertyChanged, INotifyPropertyChangingEx, IDisposable
Constructors
GridViewRowInfo(GridViewInfo)
Initializes a new instance of the Grid
Declaration
public GridViewRowInfo(GridViewInfo viewInfo)
Parameters
Grid An instance of Grid |
Fields
AllowResizeState
Declaration
protected const int AllowResizeState = 64
Field Value
System.
|
IsAttachedState
Declaration
protected const int IsAttachedState = 1
Field Value
System.
|
IsCurrentState
Declaration
protected const int IsCurrentState = 4
Field Value
System.
|
IsExpandedState
Declaration
protected const int IsExpandedState = 16
Field Value
System.
|
IsInitializedState
Declaration
protected const int IsInitializedState = 256
Field Value
System.
|
IsModifiedState
Declaration
protected const int IsModifiedState = 2
Field Value
System.
|
IsSelectedState
Declaration
protected const int IsSelectedState = 8
Field Value
System.
|
IsVisibleState
Declaration
protected const int IsVisibleState = 32
Field Value
System.
|
LastRowInfoState
Declaration
protected const int LastRowInfoState = 256
Field Value
System.
|
state
Declaration
protected BitVector32 state
Field Value
System.
|
SuspendNotificationsState
Declaration
protected const int SuspendNotificationsState = 128
Field Value
System.
|
Properties
AllowedStates
Gets the allowed states.
Declaration
public virtual AllowedGridViewRowInfoStates AllowedStates { get; }
Property Value
Allowed The allowed states. |
AllowResize
Gets or sets value indicating whether the user can resize the row.
Declaration
public virtual bool AllowResize { get; set; }
Property Value
System.
|
Cells
Gets the Grid
Declaration
public GridViewCellInfoCollection Cells { get; }
Property Value
ChildRows
Gets the visual child rows.
Declaration
public virtual GridViewChildRowCollection ChildRows { get; }
Property Value
Grid The visual child rows. |
Implements
DataBoundItem
Gets the data-bound object that populated the row.
Declaration
public virtual object DataBoundItem { get; }
Property Value
System.
|
ErrorText
Gets or sets the error message text for row-level errors.
Declaration
public string ErrorText { get; set; }
Property Value
System.
|
Group
Gets the DataGroup that owns this row
Declaration
public virtual DataGroup Group { get; }
Property Value
HasChildViews
Gets whether the GridViewRowInfo has child views.
Declaration
public virtual bool HasChildViews { get; }
Property Value
System. The has child views. |
Implements
Height
Gets or sets the current height of the row.
Declaration
public int Height { get; set; }
Property Value
System.
|
HierarchyLevel
Gets the level of this hierarchical row.
Declaration
public virtual int HierarchyLevel { get; }
Property Value
System.
|
Implements
Index
Gets the index of row in GridViewRowCollection.
Declaration
public virtual int Index { get; }
Property Value
System. The index. |
IsCurrent
Gets value indicating whether the column contains the currently selected cell in the RadGridView.
Declaration
public bool IsCurrent { get; set; }
Property Value
System.
|
IsEditable
Gets a value indicating if the values in the row can be edited.
Declaration
public virtual bool IsEditable { get; }
Property Value
System.
|
IsExpanded
Gets or sets a value indicating whether the row is expanded for as a grouping header row or when showing hierarchical structure.
Declaration
public virtual bool IsExpanded { get; set; }
Property Value
System.
|
IsModified
Gets a value indicating whether the row has been modified and changes are not saved in the data layer.
Declaration
public bool IsModified { get; }
Property Value
System.
|
IsOdd
Gets a value indicating whether the row index is odd.
Declaration
public bool IsOdd { get; }
Property Value
System.
|
IsPinned
Gets or sets value indicating whether the current row is pinned and cannot be moved from its location when a user scrolls vertically.
Declaration
public virtual bool IsPinned { get; set; }
Property Value
System.
|
IsSelected
Gets or sets a value indicating whether the row is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
System.
|
IsSystem
Determines whether the row is internally created by RadGridView and is used for displaying some dynamic information.
Declaration
public virtual bool IsSystem { get; }
Property Value
System.
|
IsVisible
Gets or sets a value indicating whether the row is visible.
Declaration
public bool IsVisible { get; set; }
Property Value
System.
|
MaxHeight
Gets or sets the maximum height of the row.
Declaration
public int MaxHeight { get; set; }
Property Value
System.
|
MinHeight
Gets or sets the minimum height of the row.
Declaration
public int MinHeight { get; set; }
Property Value
System.
|
Parent
Gets the parent row for this row.
Declaration
public virtual IHierarchicalRow Parent { get; }
Property Value
Implements
PinPosition
Gets or sets the pin position for the row. When the row is pinned, it cannot be moved from its location when a user scrolls vertically.
Declaration
public virtual PinnedRowPosition PinPosition { get; set; }
Property Value
RowElementType
Gets the type of the Grid
Declaration
public virtual Type RowElementType { get; }
Property Value
System.
|
SearchCache
If a cell from this row is a search row hit, it's column info will be stored in this cache.
Declaration
public Hashtable SearchCache { get; }
Property Value
System.
|
Tag
Tag object that can be used to store user data, corresponding to the row.
Declaration
public object Tag { get; set; }
Property Value
System.
|
ViewInfo
Gets the instance of Grid
Declaration
public virtual GridViewInfo ViewInfo { get; }
Property Value
ViewTemplate
Gets the instance of Grid
Declaration
public GridViewTemplate ViewTemplate { get; }
Property Value
Methods
ClearCache()
Clears the cache.
Declaration
protected virtual void ClearCache()
Delete()
Deletes the row from the GridViewRowCollection.
Declaration
public virtual void Delete()
DispatchEvent(KnownEvents, GridEventType, GridEventDispatchMode, Object, Object[])
Dispatches the event.
Declaration
protected virtual void DispatchEvent(KnownEvents id, GridEventType type, GridEventDispatchMode dispatchMode, object originator, object[] arguments)
Parameters
Known The id. |
Grid The type. |
Grid The dispatch mode. |
System. The originator. |
System. The arguments. |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
EnsureVisible()
Ensures that the row is visible.
Declaration
public void EnsureVisible()
EnsureVisible(Boolean)
Ensures that the row is visible.
Declaration
public void EnsureVisible(bool expandParentRows)
Parameters
System. if set to |
FindParent<T>()
Searches up the chain of parents and returns the first one of the specified type.
Declaration
public T FindParent<T>()
where T : IHierarchicalRow
Returns
T
|
Type Parameters
T
|
GetActualHeight(IGridView)
Calculates the actual height of the row.
Declaration
public virtual int GetActualHeight(IGridView gridView)
Parameters
IGrid
|
Returns
System.
|
GetErrorText(String)
Gets the error text associated with specified cell in this row.
Declaration
public string GetErrorText(string fieldName)
Parameters
System. The field name that specifies the cell. |
Returns
System. The error text if successfull. |
GetEventInfo(GridPropertyChangedEventArgs, out GridEventDispatchMode)
Gets the event info.
Declaration
protected virtual GridEventType GetEventInfo(GridPropertyChangedEventArgs property, out GridEventDispatchMode dispatchMode)
Parameters
Grid The Grid |
Grid The dispatch mode. |
Returns
HasChildRows()
Determines whether the row has child rows.
Declaration
public virtual bool HasChildRows()
Returns
System.
|
InvalidateRow()
Invalidates the row visual state.
Declaration
public virtual void InvalidateRow()
OnBeginEdit()
Called when the edit operation begins.
Declaration
protected virtual bool OnBeginEdit()
Returns
System.
|
OnEndEdit()
Called when the edit operation ends.
Declaration
protected virtual bool OnEndEdit()
Returns
System.
|
OnPropertyChanged(PropertyChangedEventArgs)
Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs args)
Parameters
System.
|
OnPropertyChanging(PropertyChangingEventArgsEx)
Declaration
protected virtual void OnPropertyChanging(PropertyChangingEventArgsEx args)
Parameters
ResumePropertyNotifications()
Resumes property notifications after a previous Suspend
Declaration
public void ResumePropertyNotifications()
SetBooleanProperty(String, Int32, Boolean)
Sets the boolean property.
Declaration
protected virtual bool SetBooleanProperty(string propertyName, int propertyKey, bool value)
Parameters
System. Name of the property. |
System. The property key. |
System. The value. |
Returns
System.
|
SetParent(GridViewRowInfo)
Sets the parent.
Declaration
protected void SetParent(GridViewRowInfo parent)
Parameters
Grid The parent. |
SetRowStateProperty<T>(String, ref T, T)
Sets the row state property.
Declaration
protected virtual bool SetRowStateProperty<T>(string propertyName, ref T propertyField, T value)
Parameters
System. Name of the property. |
T
propertyField
The property field. |
T
value
The value. |
Returns
System.
|
Type Parameters
T
The type of the T. |
SuspendPropertyNotifications()
Allows PropertyChanging and PropertyChanged notifications to be temporary suspended.
Declaration
public void SuspendPropertyNotifications()
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.
|
PropertyChanging
Declaration
public event PropertyChangingEventHandlerEx PropertyChanging
Event Type
Implements
Explicit Interface Implementations
IDataItem.DataBoundItem
Declaration
object IDataItem.DataBoundItem { get; set; }
Returns
System.
|
Implements
IDataItem.FieldCount
IDataItem.get_Item(Int32)
Declaration
object IDataItem.get_Item(int index)
Parameters
System.
|
Returns
System.
|
Implements
IDataItem.get_Item(String)
Declaration
object IDataItem.get_Item(string name)
Parameters
System.
|
Returns
System.
|
Implements
IDataItem.IndexOf(String)
Declaration
int IDataItem.IndexOf(string name)
Parameters
System.
|
Returns
System.
|
Implements
IDataItem.Item[Int32]
Declaration
object IDataItem.this[] { get; set; }
Parameters
System.
|
Returns
System.
|
Implements
IDataItem.Item[String]
Declaration
object IDataItem.this[] { get; set; }
Parameters
System.
|
Returns
System.
|
Implements
IDataItem.set_Item(Int32, Object)
Declaration
void IDataItem.set_Item(int index, object value)
Parameters
System.
|
System.
|
Implements
IDataItem.set_Item(String, Object)
Declaration
void IDataItem.set_Item(string name, object value)
Parameters
System.
|
System.
|