![]() |
![]() |
![]() |
Libgnomedb 3.0 Reference Manual | ![]() |
---|---|---|---|---|
GnomeDbGridGnomeDbGrid — Database grid widget to display and modify data in a GdaDataModel, with command buttons and indicators |
GnomeDbGrid; GnomeDbGridClass; 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
"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 : |
The GnomeDbRawGrid widget which is being used in this widget, or the GnomeDbForm widget which displays data in a form instead of a grid.