Пример #1
0
 /// <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();
 }
Пример #2
0
 private void superGridControl1_GetRowHeaderText(object sender, DevComponents.DotNetBar.SuperGrid.GridGetRowHeaderTextEventArgs e)
 {
     e.Text = ((this.CurrentIndex * this.PageSize) + e.GridRow.RowIndex + 1).ToString();
 }
Пример #3
0
        /// <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;
            }
        }