/// <summary> /// 设置行号 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void superGridControl_GetRowHeaderText(object sender, DevComponents.DotNetBar.SuperGrid.GridGetRowHeaderTextEventArgs e) { e.Text = (e.GridRow.RowIndex + 1).ToString(); }
private void superGridControl1_GetRowHeaderText(object sender, DevComponents.DotNetBar.SuperGrid.GridGetRowHeaderTextEventArgs e) { e.Text = ((this.CurrentIndex * this.PageSize) + e.GridRow.RowIndex + 1).ToString(); }
/// <summary> /// Handles invocation of GetRowHeaderText events /// </summary> internal void DoGetRowHeaderTextEvent(GridContainer row, ref string text) { if (GetRowHeaderText != null) { GridGetRowHeaderTextEventArgs ev = new GridGetRowHeaderTextEventArgs(row.GridPanel, row, text); GetRowHeaderText(this, ev); text = ev.Text; } }