![]() | ![]() | ![]() | Libgnomedb 4.0 Reference Manual | ![]() |
---|
GnomeDbGrid — Database grid widget to display and modify data in a GdaDataModel, with command buttons and indicators
struct GnomeDbGrid; struct GnomeDbGridClass; struct GnomeDbGridPriv; GtkWidget* gnome_db_grid_new (GdaDataModel *model); GList* gnome_db_grid_get_selection (GnomeDbGrid *grid); void gnome_db_grid_set_sample_size (GnomeDbGrid *grid, gint sample_size);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----GnomeDbGrid
GnomeDbGrid implements AtkImplementorIface, GtkBuildable and GtkOrientable.
"model" GdaDataModel : Read / Write / Construct Only "raw-grid" GnomeDbRawGrid : Read "widget-info" GnomeDbDataWidgetInfo : Read
GtkWidget* gnome_db_grid_new (GdaDataModel *model);
Creates a new GnomeDbGrid widget suitable to display the data in model
model : | a GdaDataModel |
Returns : | the new widget |
GList* gnome_db_grid_get_selection (GnomeDbGrid *grid);
Returns the list of the currently selected rows in a GnomeDbGrid 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. This function is a wrapper around the gnome_db_raw_grid_get_selection() function.
grid : | a GnomeDbGrid widget |
Returns : | a new list, should be freed (by calling g_list_free) when no longer needed. |
void gnome_db_grid_set_sample_size (GnomeDbGrid *grid, gint sample_size);
grid : | a GnomeDbGrid widget |
sample_size : |
"model" (GdaDataModel : Read / Write / Construct Only) | |
"raw-grid" (GnomeDbRawGrid : Read) | |
"widget-info" (GnomeDbDataWidgetInfo : Read) |
The GnomeDbRawGrid widget which is being used in this widget, or the GnomeDbForm widget which displays data in a form instead of a grid.
<< GnomeDbRawGrid | GnomeDbFindDialog >> |