public AccessibleObject GetCellAccessibleObject( GridViewCellInfo cellInfo, RowAccessibleObject parent) { lock (RadGridViewAccessibleObject.syncObj) { if (!this.cellCache.ContainsKey(cellInfo)) { this.cellCache.Add(cellInfo, new CellAccessibleObject(this.owner, cellInfo, parent)); } } return((AccessibleObject)this.cellCache[cellInfo]); }
public CellAccessibleObject( RadGridView owner, GridViewCellInfo cell, RowAccessibleObject parent) { this.owner = owner; this.parent = parent; this.cell = cell; this.column = cell.ColumnInfo; this.row = cell.RowInfo; this.isXP = Environment.OSVersion.Version.Major <= 5; this.owner.CellBeginEdit += new GridViewCellCancelEventHandler(this.owner_CellBeginEdit); this.owner.CellEndEdit += new GridViewCellEventHandler(this.owner_CellEndEdit); }
internal AccessibleObject NavigateFromChild( RowAccessibleObject child, AccessibleNavigation navdir) { switch (navdir) { case AccessibleNavigation.Up: case AccessibleNavigation.Previous: return(this.GetChild(child.ID - 1)); case AccessibleNavigation.Down: case AccessibleNavigation.Next: return(this.GetChild(child.ID + 1)); default: return((AccessibleObject)null); } }