private void CreateHeaders(ResultSet resultSet) { var headerView = new SourceGrid.Cells.Views.ColumnHeader { ElementText = new DevAge.Drawing.VisualElements.TextRenderer() }; var toolTipController = new ToolTipText(); _grid.ColumnsCount = _entity.Members.Count; _grid.FixedRows = 1; _grid.Rows.Insert(0); _columnMap = ApiUtils.BuildColumnMap(resultSet); for (int i = 0; i < resultSet.FieldCount; i++) { var member = _entity.Members[resultSet.GetFieldName(i)]; _grid[0, _columnMap[i]] = new SourceGrid.Cells.ColumnHeader(HumanText.GetMemberName(member)) { View = headerView, ToolTipText = HumanText.GetMemberName(member), AutomaticSortEnabled = false }; _grid[0, _columnMap[i]].AddController(toolTipController); } }