Пример #1
0
        // ...
        protected virtual void OnPageSizeChanged(DataGridPageSizeChangedEventArgs e)
        {
            DataGridPageSizeChangedEventHandler dataGridPageSizeChangedEventHandler = (DataGridPageSizeChangedEventHandler)base.Events[EventPageSizeChanged];

            if (dataGridPageSizeChangedEventHandler != null)
            {
                dataGridPageSizeChangedEventHandler(this, e);
            }
        }
Пример #2
0
        public void OnChangePageSize(Object sender, System.EventArgs args)
        {
            int          _PageSize = 10;
            DropDownList ddl       = (DropDownList)sender;

            if (ddl != null)
            {
                _PageSize = int.Parse(ddl.SelectedItem.Value);
            }

            DataGridPageSizeChangedEventArgs dataGridPageSizeChangedEventArgs = new DataGridPageSizeChangedEventArgs(sender, _PageSize);

            OnPageSizeChanged(dataGridPageSizeChangedEventArgs);
        }
Пример #3
0
        public void OnChangePageSize(Object sender, System.EventArgs args)
        {
            int _PageSize = 10;
            DropDownList ddl = (DropDownList)sender;
            if (ddl != null)
                _PageSize = int.Parse(ddl.SelectedItem.Value);

            DataGridPageSizeChangedEventArgs dataGridPageSizeChangedEventArgs = new DataGridPageSizeChangedEventArgs(sender, _PageSize);
            OnPageSizeChanged(dataGridPageSizeChangedEventArgs);
        }
Пример #4
0
 // ...
 protected virtual void OnPageSizeChanged(DataGridPageSizeChangedEventArgs e)
 {
     DataGridPageSizeChangedEventHandler dataGridPageSizeChangedEventHandler = (DataGridPageSizeChangedEventHandler)base.Events[EventPageSizeChanged];
     if (dataGridPageSizeChangedEventHandler != null)
     {
         dataGridPageSizeChangedEventHandler(this, e);
     }
 }