}
}
+/**
+ * gdaex_grid_get_column_by_field_name:
+ * @grid:
+ * @field_name:
+ *
+ * Returns: the #GdaExGridColumn with the specified @field_name.
+ */
+GdaExGridColumn
+*gdaex_grid_get_column_by_field_name (GdaExGrid *grid, const gchar *field_name)
+
+{
+ GdaExGridPrivate *priv;
+
+ GdaExGridColumn *gcol;
+
+ guint col;
+
+ g_return_val_if_fail (GDAEX_IS_GRID (grid), NULL);
+
+ priv = gdaex_grid_get_instance_private (grid);
+
+ gcol = NULL;
+
+ for (col = 0; priv->columns->len; col++)
+ {
+ if (g_strcmp0 (gdaex_grid_column_get_field_name ((GdaExGridColumn *)g_ptr_array_index (priv->columns, col)), field_name) == 0)
+ {
+ gcol = (GdaExGridColumn *)g_ptr_array_index (priv->columns, col);
+ break;
+ }
+ }
+
+ return gcol;
+}
+
/**
* gdaex_grid_clear:
* @grid: a #GdaExGrid object.
void gdaex_grid_add_column (GdaExGrid *grid, GdaExGridColumn *column);
void gdaex_grid_add_columns (GdaExGrid *grid, GSList *columns);
+GdaExGridColumn *gdaex_grid_get_column_by_field_name (GdaExGrid *grid, const gchar *field_name);
+
void gdaex_grid_clear (GdaExGrid *grid);
GtkWidget *gdaex_grid_get_widget (GdaExGrid *grid);