### In Files

- wx/classes/grid.rb

### Parent

Wx::Object

### Methods

- __delete_cols
- __delete_rows
- __insert_cols
- __insert_rows
- __set_table
- delete_cols
- delete_rows
- insert_cols
- insert_rows
- set_table

### Files

- wxruby2.lib

### Class Index

Quicksearch

- Wx
- Wx::AcceleratorTable
- Wx::Animation
- Wx::App
- Wx::ArtProvider
- Wx::AuiNotebook
- Wx::Bitmap
- Wx::BusyCursor
- Wx::CheckListBox
- Wx::Choice
- Wx::ClientDC
- Wx::Clipboard
- Wx::Colour
- Wx::ComboBox
- Wx::CommandEvent
- Wx::ControlWithItems
- Wx::DC
- Wx::Event
- Wx::EvtHandler
- Wx::Font
- Wx::Grid
- Wx::HelpController
- Wx::HelpControllerHelpProvider
- Wx::HelpProvider
- Wx::HtmlHelpController
- Wx::HtmlWindow
- Wx::Icon
- Wx::IconBundle
- Wx::Image
- Wx::ImageList
- Wx::KeywordConstructor
- Wx::KeywordConstructor::ClassMethods
- Wx::ListBox
- Wx::ListCtrl
- Wx::Locale
- Wx::MediaCtrl
- Wx::Menu
- Wx::MenuItem
- Wx::Notebook
- Wx::Object
- Wx::PaintDC
- Wx::Point
- Wx::PreviewFrame
- Wx::Rect
- Wx::RichTextCtrl
- Wx::SimpleHelpProvider
- Wx::Size
- Wx::Sizer
- Wx::Sound
- Wx::StandardPaths
- Wx::TextCtrl
- Wx::TextUrlEvent
- Wx::Timer
- Wx::ToolBar
- Wx::ToolBarTool
- Wx::TreeCtrl
- Wx::Window
- Wx::XmlResource
- Rumix
- Rumix::Application
- Rumix::Config
- Rumix::Registry
- Rumix::Widget
- Rumix::Widget::CheckOptionPanel
- Rumix::Widget::OptionItem
- Rumix::Widget::OptionPanel
- Rumix::Widget::RadioOptionPanel
- Rumix::Widget::TitleText
- ROpt
- ROpt::ArgumentParser
- ROpt::ParseResult
- Uconv
- Uconv::Error
- Enumerable
- File
- Ini
- Kernel
- Module
- Object
- Pathname
- WxConstructor
- WxRubyStyleAccessors

No matching classes.

# Wx::Grid

A data-oriented editable table control.

### Public Instance Methods

__delete_cols(pos = 0, num = 1, update_labels = true) click to toggle source

Alias for delete_cols

__delete_rows(pos = 0, num = 1, update_labels = true) click to toggle source

Alias for delete_rows

__insert_cols(pos = 0, num = 1, update_labels = true) click to toggle source

Alias for insert_cols

__insert_rows(pos = 0, num = 1, update_labels = true) click to toggle source

Alias for insert_rows

__set_table(table, sel_mode = Wx::Grid::GridSelectCells) click to toggle source

Alias for set_table

delete_cols(pos = 0, num = 1, update_labels = true) click to toggle source

(Not documented)

    # File wx/classes/grid.rb, line 127
      def delete_cols(pos = 0, num = 1, update_labels = true)
        __delete_cols(pos, num, update_labels)
        __col_editors.slice!(pos, num)
        __col_renderers.slice!(pos, num)
        num.times do
          __cell_editors.map { | col | col.slice!(pos, num) if col }
        end
        num.times do
          __cell_renderers.map { | col | col.slice!(pos, num) if col }
        end
      end

Also aliased as: __delete_cols
delete_rows(pos = 0, num = 1, update_labels = true) click to toggle source

(Not documented)

    # File wx/classes/grid.rb, line 118
      def delete_rows(pos = 0, num = 1, update_labels = true)
        __delete_rows(pos, num, update_labels)
        __row_editors.slice!(pos, num)
        __row_renderers.slice!(pos, num)
        __cell_editors.slice!(pos, num)
        __cell_renderers.slice!(pos, num)
      end

Also aliased as: __delete_rows
insert_cols(pos = 0, num = 1, update_labels = true) click to toggle source

(Not documented)

    # File wx/classes/grid.rb, line 105
      def insert_cols(pos = 0, num = 1, update_labels = true)
        __insert_cols(pos, num, update_labels)
        num.times { __col_editors.insert(pos, nil) }
        num.times { __col_renderers.insert(pos, nil) }
        num.times do
          __cell_editors.map { | col | col.insert(pos, []) if col }
        end
        num.times do
          __cell_renderers.map { | col | col.insert(pos, []) if col }
        end
      end

Also aliased as: __insert_cols
insert_rows(pos = 0, num = 1, update_labels = true) click to toggle source

(Not documented)

    # File wx/classes/grid.rb, line 96
      def insert_rows(pos = 0, num = 1, update_labels = true)
        __insert_rows(pos, num, update_labels)
        num.times { __row_editors.insert(pos, nil) }
        num.times { __row_renderers.insert(pos, nil) }
        num.times { __cell_editors.insert(pos, []) }
        num.times { __cell_renderers.insert(pos, []) }
      end

Also aliased as: __insert_rows
set_table(table, sel_mode = Wx::Grid::GridSelectCells) click to toggle source

(Not documented)

    # File wx/classes/grid.rb, line 33
      def set_table(table, sel_mode = Wx::Grid::GridSelectCells)
        __set_table(table, sel_mode)
        @__grid_table = table
      end

Also aliased as: __set_table

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.