예제 #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);
     }
 }