Click here to Skip to main content
15,899,475 members
Home / Discussions / Database
   

Database

 
GeneralRe: Need Oracle Column Names Pin
PDTUM27-Aug-11 14:56
PDTUM27-Aug-11 14:56 
AnswerRe: Need Oracle Column Names Pin
Luc Pattyn27-Aug-11 15:09
sitebuilderLuc Pattyn27-Aug-11 15:09 
GeneralRe: Need Oracle Column Names Pin
PDTUM28-Aug-11 4:53
PDTUM28-Aug-11 4:53 
AnswerRe: Need Oracle Column Names Pin
Mycroft Holmes27-Aug-11 13:11
professionalMycroft Holmes27-Aug-11 13:11 
GeneralRe: Need Oracle Column Names Pin
PDTUM27-Aug-11 14:54
PDTUM27-Aug-11 14:54 
GeneralRe: Need Oracle Column Names Pin
Mycroft Holmes28-Aug-11 14:43
professionalMycroft Holmes28-Aug-11 14:43 
AnswerRe: Need Oracle Column Names Pin
A.J.Wegierski27-Aug-11 21:34
A.J.Wegierski27-Aug-11 21:34 
AnswerRe: Need Oracle Column Names [modified] Pin
Shameel27-Aug-11 23:28
professionalShameel27-Aug-11 23:28 
I think I found out your problem. Your select statement is correct and should return the names of all columns in your table. You can verify this by running the query in a client tool like SQL * Plus or TOAD.

It's how you bind the data table to the ListView that makes the difference. Instead of querying the DataTable's columns, you should query its rows because the column information is returned as rows.

Try this:
C#
foreach (DataRow row dt.Rows) {
    listViewColumns.Items.Add(row[0].ToString());
}


modified on Sunday, August 28, 2011 6:22 AM

GeneralRe: Need Oracle Column Names Pin
PDTUM28-Aug-11 4:48
PDTUM28-Aug-11 4:48 
AnswerRe: Need Oracle Column Names Pin
PIEBALDconsult28-Aug-11 4:44
mvePIEBALDconsult28-Aug-11 4:44 
GeneralRe: Need Oracle Column Names Pin
PDTUM28-Aug-11 4:56
PDTUM28-Aug-11 4:56 
GeneralRe: Need Oracle Column Names Pin
Shameel28-Aug-11 8:33
professionalShameel28-Aug-11 8:33 
GeneralRe: Need Oracle Column Names Pin
PDTUM28-Aug-11 11:39
PDTUM28-Aug-11 11:39 
GeneralRe: Need Oracle Column Names Pin
Shameel28-Aug-11 22:30
professionalShameel28-Aug-11 22:30 
GeneralRe: Need Oracle Column Names Pin
PIEBALDconsult28-Aug-11 11:56
mvePIEBALDconsult28-Aug-11 11:56 
Questionselect statement group by Pin
salmonraju25-Aug-11 8:42
salmonraju25-Aug-11 8:42 
AnswerRe: select statement group by Pin
Chris Meech25-Aug-11 9:15
Chris Meech25-Aug-11 9:15 
AnswerRe: select statement group by Pin
Corporal Agarn25-Aug-11 9:51
professionalCorporal Agarn25-Aug-11 9:51 
QuestionSQL Nominal Date Conversion [modified] Pin
Member 408789025-Aug-11 3:41
Member 408789025-Aug-11 3:41 
SuggestionRe: SQL Nominal Date Conversion Pin
Shameel25-Aug-11 5:39
professionalShameel25-Aug-11 5:39 
GeneralRe: SQL Nominal Date Conversion Pin
Simon_Whale25-Aug-11 5:48
Simon_Whale25-Aug-11 5:48 
GeneralRe: SQL Nominal Date Conversion Pin
Shameel25-Aug-11 9:10
professionalShameel25-Aug-11 9:10 
QuestionSQL database Pin
Emejulu JVT25-Aug-11 2:25
Emejulu JVT25-Aug-11 2:25 
AnswerRe: SQL database Pin
GenJerDan25-Aug-11 3:56
GenJerDan25-Aug-11 3:56 
GeneralRe: SQL database Pin
Emejulu JVT25-Aug-11 23:50
Emejulu JVT25-Aug-11 23:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.