columns

Can sqlcommand parameters provide the names of database columns?

Like this: select * from foo where @nameofdbcolumnprovidedbyparam = 1 ? Whenever I attempt this with sqldatasource or in ado I get errors such as: Syntax error converting the nvarchar value 'foo' to a column of data type int. ...

SHAREPOINT: Custom Field type property storage defined for custom field

ok here is a great question. I have a set of generic custom fields that are highly configurable from an end user perspective and the configuration is getting overbearing as there are nearly 100 plus items each custom field allows you to perform in the areas of Server/Client Validation, Server/Client Events/Actions, Server/Client Bindings...

First Column not hiding in datagridview

I have a datagridview and once I populate the view with the data source I hide the columns that I do not need. For some reason the 1st column is not hiding. I have checked the column name and they match and the 2nd line executes fine hides the column for the EVENTID. I even did a messagebox.show( dgvTourOther.Columns("OTHERID").name)...

Ordering data results in columns instead of rows

Hello, I have a MySQL table ordered like this : | user_id | day | time | job | |--------------------------------| | 1 | 2455251 | 08 | T23 | | 1 | 2455252 | 14 | T14 | | 1 | 2455253 | 22 | T27 | | 2 | 2455251 | 06 | T16 | | 2 | 2455252 | 12 | T64 | | 2 | 2455253 | 20 |...

Combining 2 columns into 1 column many times in a very large dataset in R

Combining 2 columns into 1 column many times in a very large dataset in R The clumsy solutions I am working on are not going to be very fast if I can get them to work and the true dataset is ~1500 X 45000 so they need to be fast. I definitely at a loss for 1) at this point although have some code for 2) and 3). Here is a toy example o...

[PHP] Alphabetical order help

Hey there, I'm having an issue here, I am trying to get all the titles from my database and list them in alphabetial order with the first letter indicating where we are at, so to be more clear: A: Animal Alex B: Boo C: Crap Actually this is what I use, and it works perfect: <?php $conn = mysql_connect('localhost','user','pw') o...

id columns or clustered primary keys/database consistency

If I had a table with the columns: Artist Album Song NumberOfListens ...is it better to put a clustered primary key on Artist, Album, and Song or to have an autoincrementing id column and put a unique constraint on Artist, Album, and Song. How important is database consistency? If half of my tables have clustered primary keys and t...

How to add columns dynamically in jqgrid?

Hi, I want add columns dynamically. Means I have got 4 buttons. Add After, Add Before, Edit and Delete. Can someone help me, how to achive this functionaliy. Regards, Arfan Mahmood. ...

SQL Server - How to display master details data in columns

I have two tables, to be concise let’s call them TableA and TableB. This is the schema: TableA ID – int Name varchar(50) TableB ID – int TableA_Fk – int Value varchar(50) Each record in table A can have at most 9 records in table B. I want to be able to retrieve the data in a columnar form: TableA-Name, TableB-Value1, … TableB-Value...

PHP, CSV columns into separate arrays

Basically, i want to make a system where a user can upload a CSV file and pick what columns they want to upload/process I can do this fine by using fopen and foreach, but since the number of the column may vary from CSV to CSV.... i can store the picked columns in an array, eg picked[]= "1,2,4"; //from 1,2,3,4 columns comma separated...

making a combined sum of two columns

I have a table (apples) containing: cid date_am date_pm ---------------------- 1 1 1 2 2 1 3 1 3 1 1 2 I asked a question earlier (badly) about how I would rank the customers in order of the number of ones(1) they had. The solution was (based on one column): SELECT cid, sum( date_pm ) A...

How to set the same column width in a datagrid in flex at runtime?

HI, In flex, I have a datagrid with 22 columns. I initially display all the columns. The width of each column right is uniform. Now when i change the visiblity of a few columns, the width of each column varies. How do i maintain a uniform column width for each column whether or not there are any invisible columns?... Also how do i get t...

Infragistics Webgrid (Datagrid) dynamic adjusting columns

I want to explain this as best as I can. I have a Webgrid with a certain amount of columns. What I want is for the columns to adjust to the size of the largest string within each column, where the total of all width of columns does not exceed the width of the webgrid. At the same time however if the width of all columns is less than the ...

unordered lists as columns

I am trying to use unordered lists as columns something setup like the following: <ul> <li>word 1</li> <li>word 1</li> <li>word 1</li> <li>word 1</li> <li>word 1</li> </ul> <ul> <li>word 2</li> <li>word 2</li> <li>word 2</li> <li>word 2</li> <li>word 2</li> </ul> What would I need to do as far as css these to lineup side by sid...

Can I flow divs down the page instead of across it?

If I have a collection of div elements, I can use CSS to have them flow across the page and overflow onto the next line. Here's a simple example: <html> <head> <title>Flowing Divs</title> <style type="text/css"> .flow { float: left; margin: 4em 8em; } </style> </head> <body> <div class=...

how to clear individual columns in oracle?

hey, i wrote a java app that communicates and stores data in oracle; my question is how do i clear entered information from individual columns in oracle? for example, say i have a following table: create table example (id integer, name varchar(50), surname varchar(50)); and it contains current information, how do i then clear in...

Problem in creating different types of columns in a Winforms gridview

My windows form application has a grid view control with filename as a default column. User should create a column of following types Text, Number, Currency, Combo Box, Check Box, Radio Button ,Date time type (should display DateTimePicker control) and Hyper Link type. After that i want to pass all rows to next screen for fu...

XSLT typograph.

Divide a large amount of text on an arbitrary number of equal parts. I probably already fed up with their stupid questions, but I have one more question. I have a large piece of text <p> Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab il...

How to select a names from a column MS Excel 2007

Hey guys, I have an Excel document which has a list of students and their group names. I have another sheet within the the same excel document which is called comments. In this sheet, I would like to have a list of individual team names listed. There are 65 students and 14 defined groups. Is there a way to select the 14 group names, w...

Vertically split variable-sized div using CSS

I'm trying to divide an auto-scaling div into two vertically using two other div's. What I have so far: <div id='wrapper'> <div id='left'>some stuff</div> <div id='right'>more stuff</div> </div> with #frame { position: static; width: 1000px; height: auto; /* more positioning stuff */ } #left { position: absolute; widt...