void ApplyColumnStyle (TableCellCollection cells, ListItemType type)
{
int ncells = Math.Min (cells.Count, render_columns.Length);
if (ncells <= 0)
return;
for (int i = 0; i < ncells; i++) {
Style style = null;
TableCell cell = cells [i];
DataGridColumn column = render_columns [i];
if (!column.Visible) {
cell.Visible = false;
continue;
}
style = column.GetStyle (type);
if (style != null)
cell.MergeStyle (style);
}
}