## GnomeDbRawGrid GnomeDbRawGrid — Grid to display and modify data in a GdaDataModel |

## Synopsis

                        GnomeDbRawGrid;
                        GnomeDbRawGridClass;
                        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

## Signals

      "double-clicked"                                 : Run First
      "populate-popup"                                 : Run First
      "selection-changed"                              : Run First

## 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

### GnomeDbRawGrid

    typedef struct _GnomeDbRawGrid GnomeDbRawGrid;

### GnomeDbRawGridClass

    typedef struct {
    	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);
    } GnomeDbRawGridClass;

### GnomeDbRawGridPriv

    typedef struct _GnomeDbRawGridPriv 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` : |

## Property Details

### The `"global-actions-visible"` property

      "global-actions-visible"   gboolean              : Read / Write

Global Actions visible.

Default value: FALSE

### The `"info-cell-visible"` property

      "info-cell-visible"        gboolean              : Read / Write

Info cell visible.

Default value: FALSE

### The `"model"` property

      "model"                    GdaDataModel          : Read / Write

## Signal Details

### The `"double-clicked"` signal

    void                user_function                      (GnomeDbRawGrid *dbrawgrid,
                                                            gint            arg1,
                                                            gpointer        user_data)      : Run First

`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)      : Run First

`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)      : Run First

`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.