private void butAddGroupLevel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { GroupReportStyle groupStyle = new GroupReportStyle(); int index = m_styleSheet.Grid.GroupLevels.Add(groupStyle); DataRow newRow = this.AddGroupLevel(index, groupStyle); this.gridStyleElementList.SelectedRows.Clear(); this.gridStyleElementList.SelectedRows.Add(newRow); this.gridStyleElementList.CurrentRow = newRow; newRow.BringIntoView(); this.UpdateElementNameColumnWidth(); this.InvalidatePreview(); this.gridStyleElementList.Select(); }
private DataRow AddGroupLevel(int index, GroupReportStyle groupReportStyle) { bool groupLevelExists = (index < m_gridSampleData.GroupTemplates.Count); DataRow dataRow = this.AddStyleElementToList( "�ӷ��� (���� " + index.ToString() + (groupLevelExists ? ")" : ") (����ʾ)"), "Groups", groupReportStyle, new EventHandler(this.RemoveGroupLevel_Click)); this.AddSubStyleElementToList(dataRow, "ͷ", m_styleSheet.Grid.GroupLevels[index].HeaderRow, null); this.AddSubStyleElementToList(dataRow, "β", m_styleSheet.Grid.GroupLevels[index].FooterRow, null); this.AddSubStyleElementToList(dataRow, "ժҪ��", m_styleSheet.Grid.GroupLevels[index].SummaryRow, null); m_groupLevels.Add(dataRow); return dataRow; }