columns

[VB .NET] Table with 3 columns. How can I make the middle one autogrow?

hey there. This might sound a really simple issue but it's kind of driving me nuts. I have a table with 3 columns. The first column has some numbers in labels. The second column has a ListView, and the 3rd column has some small buttons. What I want is that when the user maximizes the window, the column that grows is the middle one and...

select more rows as a column

I have a MySQL issue i want to have the result of the next query into a var and use it to update into the trigger i am trying to get the names comma separated The query returns more then one row SELECT t.naam FROM trefwoorden t INNER JOIN organisaties_has_trefwoorden AS o ON (t.id_trefwoorden = o.id_trefwoorden) WHERE o.id_organ...

CSS to Make 2 Column Content Areas

I'm trying to stray away from using tables to form the layout of my content, and I can think of two alternatives that I'd like to better learn: (1) styling list items to be side-by-side, and (2) using div blocks that float onto the same line. Both of these would have their own uses for what I'm working on. I'm already using div tags to ...

Performing Inner Join for Multiple Columns in the Same Table

I have a scenario which I'm a bit stuck on. Let's say I have a survey about colors, and I have one table for the color data, and another for people's answers. tbColors color_code , color_name 1 , 'blue' 2 , 'green' 3 , 'yellow' 4 , 'red' tbAnswers answer_id , favorite_color , least_favorite_...

PHP and MySQL - Printing rows matching a column value

Hello, I need to write a PHP script that will print out results from a MySQL database. For example, say I have 9 fields. Field 1 is an auto increasing number, field two is a three digit number. I need to be able to have a script read, find the matching number (it'll be from a POST), and then display all matching three digit results, a...

Add columns to a datatable in c#?

I have a csv reader class that reads a .csv file and its values.... I have created datatable out of it... Consider my Datatable contains three header columns Name,EmailId,PhoneNo.... The values have been added successfully.... Now i want to add two columns IsDeleted,CreatedDate to this datatable... I have tried this but it doesn't seem t...

Flex actionscript datatable column names are encoded - how to decode?

Hi, I am returning a .NET datatable to Flex Actionscript via a web service. Once I have the datatable then I want to grab the column names. The following code outputs my column names: for each (var tcolumn:Object in datatable.Columns){ trace('Column:'+tcolumn); } This works ok, but the column names are somehow encoded, so a colum...

CSS Columns and printing

In Mozilla, applying a css rule like -moz-column-count: 2; gets you 2 columns that are the full height of the page. From what their MDC suggests, this is called "Height Balancing". Webkit has something similar: -webkit-column-count: 2; I'm not completely sure if Webkit has "Height Balancing" or not (this may be the root of my pro...

Equal Height Columns with Cross-Browser CSS

I want to have divs of the same height. http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks does not work for be because my divs have a border, and the method described assumes, that they have not. A jQuery solution I could not make work, because my divs resize late because of ajax and menu clicks and I...

How to drop columns using Rails migration

What's the syntax for dropping a database table column through a Rails migration? ...

Question with R. Element wise multiplication, addition, and division with 2 data.frames with varying amounts of missing data in a given row.

I have a various data.frames with columns of the same length where I am trying to multiple 2 rows together element-wise and then sum this up. For example, below are two vectors I would like to perform this operation with. > a.1[186,] q01_a q01_b q01_c q01_d q01_e q01_f q01_g q01_h q01_i q01_j q01_k q01_l q01_m 3 3 3 3 ...

Expanding/contracting columns with browser (ASP.Net)

Hi, I'm trying to accomplish something like this (http://picturegroup.com) , where you have images displayed in several columns, but as you resize your browser, columns will (dis)appear so to fit what you can see on the screen. Any ideas on how can I do this (links, etc)? Thanks! PS: Bear in mind that I'm quite a ASP.Net noob ...

I always get stuck here... Divs not behaving properly (alignment issues)

Hi, I don't know why, after encountering this problem dozens of times, the answer always seems different and I can't seem to work my way through the problem-solving process, but here I am again with misaligned divs. I've got 3rows encasing columns. each row is to have (at least) 3 columns (and probably some nested divs down the line, b...

transforming 1d (1column) into 5d(5column) matrix through copy paste or other

Ex. I want to take the column with 12345..... and order 5 columns across as seen. next 5 numbers in column will be next row. However my code creates a 4 row gap in between each successive row. I dont know what additional logic (possibly if then statement) I can embed into do loop to may make it cleaner. I am new to this, so showing as mu...

jQuery - Sliding vertically aligned column

Hello, I have two columns, they are both floated to the left. Inside the left column I have a 'trigger' to hide the right column, this makes the left column expand 100% when the right column is hidden. Right now I am able to make the right column appear back, but the problem is that the right column wraps under the left column (of cour...

How can I know the displayed text in the UILabelView?

How can I know the displayed text in the UILabelView? I have a large text and I am going to have 3 uilabels that represent 3 columns of an iPad App like NYTimes one. When I put the large text in the first column (UILabelView) I need to know how much of the text is displayed there.. If U suggest another solution please let me know. Char...

Whats the most efficient MySQL column types for this data?

I have several tables with some pretty standard data in each. Can somebody help me optimize them by telling me the best column types for this data. Whats beside them is what I have currently. Number (max length 7) --> MEDIUMINT(8) Unsigned Text (max length 30) --> VARCHAR(30) Text (max length 200) --> VARCHAR(200) Email Address (max len...

How to Bind Two Lists to Two Columns of Wpf DataGrid?

I want to bind two lists to two columns of a Wpf DataGrid. How is this done in Xaml? Class MainWindow Public Property Column1 As List(Of Integer) = New List(Of Integer) From {1, 2, 3} Public Property Column2 As List(Of Integer) = New List(Of Integer) From {4, 5, 6} End Class ...

wxPython ListCtrl Column Ignores Specific Fields

I'm rewriting this post to clarify some things and provide a full class definition for the Virtual List I'm having trouble with. The class is defined like so: from wx import ListCtrl, LC_REPORT, LC_VIRTUAL, LC_HRULES, LC_VRULES, \ EVT_LIST_COL_CLICK, EVT_LIST_CACHE_HINT, EVT_LIST_COL_RIGHT_CLICK, \ ImageList, IMAGE_LIST_SMALL, Men...

Exporting each Excel column to individual text or csv files?

I have an Excel worksheet with around 100 cols. Does anyone know of an easy way to write the contents of each column to a csv or txt file? ...