private void butAddDataRow_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { RowReportStyle rowStyle = new RowReportStyle(); int index = m_styleSheet.Grid.DataRows.Add(rowStyle); DataRow newRow = this.AddAlternatingDataRow(index, rowStyle); this.gridStyleElementList.SelectedRows.Clear(); this.gridStyleElementList.SelectedRows.Add(newRow); this.gridStyleElementList.CurrentRow = newRow; newRow.BringIntoView(); this.UpdateElementNameColumnWidth(); this.InvalidatePreview(); this.gridStyleElementList.Select(); }
private DataRow AddAlternatingDataRow(int index, RowReportStyle dataRowReportStyle) { DataRow dataRow = this.AddStyleElementToList( "����������" + index.ToString(), "Data Rows", dataRowReportStyle, new EventHandler(this.RemoveAlternatingDataRow_Click)); m_alternatingDataRows.Add(dataRow); return dataRow; }