protected virtual void InitializeItem (DataGridItem item, DataGridColumn [] columns) { bool th = UseAccessibleHeader && item.ItemType == ListItemType.Header; for (int i = 0; i < columns.Length; i++) { TableCell cell = null; if (th) { cell = new TableHeaderCell (); cell.Attributes["scope"] = "col"; } else cell = new TableCell (); columns [i].InitializeCell (cell, i, item.ItemType); item.Cells.Add (cell); } }