columns

Use XSLT to arrange a list of items in a table

I have a linear list of items which I wish to arrange in a table using XSLT. I wish to specify the number of columns as a parameter. For example, if I have a list of 12 items, I can select a 2x6, 3x4, 4x3 or 6x2 table. I cannot see a general way to do this. I have seen this article: http://www.nedcomp.nl/support/origdocs/xml4/extracted...

Nested Row problem

Hi, I'm using the 1kb css grid framework for a site, and although nested rows are apparently supported by the framework, when I try to drop in a nested row it doesn't work! Sorry not to explain it better - the site's here, may be easier to just look at the source: http://2605.co.uk/saf/build/ the grid: /grid.css the stylesheet: /styl...

Excel VBA merge many columns into one on separate rows

I have a large array of cells in multiple columns that need to be combined into one large column with a new row for each cell. I do NOT want to merge the contents of any cells. ...

No cursor when resizing datagridview

When i'm trying to resize datagridview columns the resize cursor appears only when i roll over header. However, when i roll over in between cells, resize cursor doesn't show at all. I have noticed if i set ColumnHeadersVisible = false it fixes the problem and i see resize cursor between columns. However, i need header to be visible, any...

403 forbidden error when trying to add a sharepoint lookup or person or group field

After creating a new list in SharePoint, I can add other types of fields, but not lookup fields or person or group fields. When creating a new column... as soon as I change the column type radio to one of these two types of fields, I get a 403 forbidden error. Any ideas why that might be happening? Is it a setting in Central Administra...

Dynamically customize django admin columns ?

Is it possible to let the users choose / change dynamically the columns displayed in a object list in Django administration ? Things can surely be implemented "from scratch" by modifying the 'change_list.html' template but I was wondering if somebody has already had the same problem and/or if any django-pluggin can do that. Thanks in a...

Data table columns become out of order after changing data source.

This is kind of a oddball problem so I will try to describe the best that I can. I have a DataGridView that shows a list of contracts and various pieces of information about them. There are three view modes: Contract Approval, Pre-Production, and Production. Each mode has it's own set of columns that need to be displayed. What I have be...

In T-SQL how to display columns for given table name?

I am trying to list all of the columns from whichever Adventureworks table I choose. What T-sQL statement or stored proc can I execute to see this list of all columns? I want to use my C# web app to input one input parameter = table_name and then get a list of all the column_names as output. Right now I am trying to execute the sp_col...

Code Golf: Numeric equivalent of an Excel column name

The challenge The shortest code by character count that will output the numeric equivalent of an Excel column string. For example, the A column is 1, B is 2, so on and so forth. Once you hit Z, the next column becomes AA, then AB and so on. Test cases: A: 1 B: 2 AD: 30 ABC: 731 WTF: 16074 ROFL: 326676 Code count includes ...

WPF datagrid column heading span more than once column

In a WPF datagrid is it possible to group column headings? What I'm after is | Column 1 | Column 2 | Column 3| | a b c | a b c | a b c | | z x y | z x y | z x y | I've searched around and can't see an obvious way of doing this. I could use a templated column and then mimick the extra cells within the each template bu...

How to calculate columns in datagridview

I am new to C#. I have a datagridview with 3 columns. AmountPaid/TotalDue/BalanceDue. I am simply trying to subtract the value of AmountPaid column/cells from TotalDue column/cells and place the result in BalanceDue column/cells. Any code help or links would be appreciated. Thanks Oceantrain ...

How to do simple math in datagridview

I am new to C#. I have a datagridview with 9 columns. I am simply trying take the value in column 5 and subtract it from column 6. Then display the result in column 9. It seems simple enough.I know it's done in excel all the time. But I just cannot figure this out. Do I need to create a new class with a method called calculate columns? o...

How to add the document library column named "Type (icon linked to document)" into list view?

I am working with a list view. I want a column to have look similar to the document library column named "Type (icon linked to document)" column. I should also be able to set the path this hyperlinked icon should open. I tried a lot with existing site columns but could still not figure out how to do this. Has anyone implemented this earl...

How to get number of attributes in a java class?

I have a java class containing all the columns of a database table as attributes (member variables) and corresponding getters and setters. I want to have a method in this class called getColumnCount() that returns the number of columns (i.e. the number of attributes in the class)? How would I implement this without hardcoding the numbe...

PCCTS track input column number

How can I make PCCTS track the number of the tokens columns? ...

SQL rows in place of columns ?

I have a form with many project questions and in some of those questions are about 20 CheckBoxes to be checked. I want to create a SQL structure for these projects. The majority of data is located in a Project table. But I don't want to have all these CheckBoxes as columns of the project table, instead I want to make a table where all ...

Ordering columns in Rails, cakephp style.

CakePHP's built in pagination helpers automatically allow column ordering in the view. If you bake the view you get a link on each column to order it by that data. Is there a way to get this functionality in Rails? The standard will paginate doesn't offer it, anyone know any good ones? ...

WPF DataGrid window resize does not resize DataGridColumns

I have a WPF DataGrid (from the WPFToolkit package) like the following in my application. <Controls:DataGrid> <Controls:DataGrid.Columns> <Controls:DataGridTextColumn Width="1*" Binding="{Binding Path=Column1}" Header="Column 1" /> <Controls:DataGridTextColumn Width="1*" Binding="{Binding Path...

Adding Mysql Columns in Rails Rake

I have a rake file that does a series of calculations on a database. Basically it adds usage on equipment regularly. At the end of the day it needs to add that days total to a monthly total table and update that same table. i use the following simple concepts: To get data from the database is pretty simple: @usages = Usage.find(:all)...

How to read more than 256 columns from an excel file (2007 format) using OLEDB

I'm trying to import a excel file with more than 256 columns using OLEDB in C#. I tried all kinds of things, but it doesn't seem to be possible to read more than 256 columns from a excel (2007 format) file. I'm wondering if it's a bug or I'm simply missing something. Here is the connection string I used: Provider=Microsoft.ACE.OLEDB.12....