## GnomeDbRawGrid

GnomeDbRawGrid — Grid to display and modify data in a GdaDataModel

##

# Synopsis

    struct      GnomeDbRawGrid;
    struct      GnomeDbRawGridClass;
    struct      GnomeDbRawGridPriv;
    GtkWidget*  gnome_db_raw_grid_new           (GdaDataModel *model);
    GList*      gnome_db_raw_grid_get_selection (GnomeDbRawGrid *grid);
    void        gnome_db_raw_grid_set_sample_size
                                                (GnomeDbRawGrid *grid,
                                                 gint sample_size);
    void        gnome_db_raw_grid_set_sample_start
                                                (GnomeDbRawGrid *grid,
                                                 gint sample_start);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkTreeView
                                     +----GnomeDbRawGrid

## Implemented Interfaces

GnomeDbRawGrid implements AtkImplementorIface, GtkBuildable and GnomeDbDataWidget.

## Properties

      "global-actions-visible" gboolean             : Read / Write
      "info-cell-visible"    gboolean             : Read / Write
      "model"                GdaDataModel         : Read / Write

## Signal Prototypes

    "double-clicked"
                void        user_function      (GnomeDbRawGrid *dbrawgrid,
                                                gint arg1,
                                                gpointer user_data);
    "populate-popup"
                void        user_function      (GnomeDbRawGrid *dbrawgrid,
                                                GtkMenu *arg1,
                                                gpointer user_data);
    "selection-changed"
                void        user_function      (GnomeDbRawGrid *dbrawgrid,
                                                gboolean arg1,
                                                gpointer user_data);

## Description

This widget only contains data, it has no decoration, or button to change the displayed row, or any indicator about the current displayed row or the total number of rows. To have a complete grid widget, see the GnomeDbGrid widget.

This widget is itself a GtkTreeView widget.

## Details

### struct GnomeDbRawGrid

    struct GnomeDbRawGrid;

### struct GnomeDbRawGridClass

    struct GnomeDbRawGridClass {

    	GtkTreeViewClass        parent_class;

    	void             (* selection_changed) (GnomeDbRawGrid *grid, gboolean row_selected);
    	void             (* double_clicked)    (GnomeDbRawGrid *grid, gint row);
            void             (* populate_popup)    (GnomeDbRawGrid *grid, GtkMenu *menu);
    };

### struct GnomeDbRawGridPriv

    struct GnomeDbRawGridPriv;

### gnome_db_raw_grid_new ()

    GtkWidget*  gnome_db_raw_grid_new           (GdaDataModel *model);

Creates a new GnomeDbRawGrid widget suitable to display the data in `model`

`model` : | a GdaDataModel
Returns : | the new widget

### gnome_db_raw_grid_get_selection ()

    GList*      gnome_db_raw_grid_get_selection (GnomeDbRawGrid *grid);

Returns the list of the currently selected rows in a GnomeDbRawGrid widget. The returned value is a list of integers, which represent each of the selected rows.

If new rows have been inserted, then those new rows will have a row number equal to -1.

`grid` : | a GnomeDbRawGrid widget
Returns : | a new list, should be freed (by calling g_list_free) when no longer needed.

### gnome_db_raw_grid_set_sample_size ()

    void        gnome_db_raw_grid_set_sample_size
                                                (GnomeDbRawGrid *grid,
                                                 gint sample_size);

`grid` : |
`sample_size` : |

### gnome_db_raw_grid_set_sample_start ()

    void        gnome_db_raw_grid_set_sample_start
                                                (GnomeDbRawGrid *grid,
                                                 gint sample_start);

`grid` : |
`sample_start` : |

## Properties

"`global-actions-visible`" (gboolean : Read / Write) | Global Actions visible.
"`info-cell-visible`" (gboolean : Read / Write) | Info cell visible.
"`model`" (GdaDataModel : Read / Write) |

## Signals

### The "double-clicked" signal

    void        user_function                  (GnomeDbRawGrid *dbrawgrid,
                                                gint arg1,
                                                gpointer user_data);

`dbrawgrid` : | the object which received the signal.
`arg1` : |
`user_data` : | user data set when the signal handler was connected.

### The "populate-popup" signal

    void        user_function                  (GnomeDbRawGrid *dbrawgrid,
                                                GtkMenu *arg1,
                                                gpointer user_data);

`dbrawgrid` : | the object which received the signal.
`arg1` : |
`user_data` : | user data set when the signal handler was connected.

### The "selection-changed" signal

    void        user_function                  (GnomeDbRawGrid *dbrawgrid,
                                                gboolean arg1,
                                                gpointer user_data);

`dbrawgrid` : | the object which received the signal.
`arg1` : |
`user_data` : | user data set when the signal handler was connected.

## See Also

The GnomeDbRawForm widget which displays the same information but as form instead of a grid.