Exemplo n.º 1
0
        public GLib.Value GetColumnValue(ITreeGridItem item, int dataColumn, int row)
        {
            int column;

            if (ColumnMap.TryGetValue(dataColumn, out column))
            {
                var colHandler = (IGridColumnHandler)Widget.Columns[column].Handler;
                return(colHandler.GetValue(item, dataColumn, row));
            }
            return(new GLib.Value((string)null));
        }
Exemplo n.º 2
0
        public GLib.Value GetColumnValue(ITreeGridItem item, int dataColumn, int row, Gtk.TreeIter iter)
        {
            if (dataColumn == RowDataColumn)
            {
                return(new GLib.Value(GetRowIndexOfPath(model.GetPath(iter))));
            }

            int column;

            if (ColumnMap.TryGetValue(dataColumn, out column))
            {
                var colHandler = (IGridColumnHandler)Widget.Columns[column].Handler;
                return(colHandler.GetValue(item, dataColumn, row));
            }
            return(new GLib.Value((string)null));
        }