Click here to Skip to main content
15,922,315 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: DataSet Editing....... Pin
Mark0630-Aug-05 12:07
Mark0630-Aug-05 12:07 
GeneralRe: DataSet Editing....... Pin
daviiie30-Aug-05 12:16
daviiie30-Aug-05 12:16 
GeneralRe: DataSet Editing....... Pin
daviiie30-Aug-05 12:22
daviiie30-Aug-05 12:22 
QuestionMsgBox Buttons in Arabic Pin
padmakumarg30-Aug-05 9:39
padmakumarg30-Aug-05 9:39 
AnswerRe: MsgBox Buttons in Arabic Pin
Dave Kreskowiak30-Aug-05 9:48
mveDave Kreskowiak30-Aug-05 9:48 
AnswerRe: MsgBox Buttons in Arabic Pin
MohammadAmiry30-Aug-05 20:27
MohammadAmiry30-Aug-05 20:27 
GeneralRe: MsgBox Buttons in Arabic Pin
Anonymous31-Aug-05 3:58
Anonymous31-Aug-05 3:58 
QuestionDataSet funkyness Pin
Vodstok30-Aug-05 9:02
Vodstok30-Aug-05 9:02 
I have an app i am building where users are able to upload .csv files to be validated. there is a small problem, the company that is going to be using it has decreed that the .csv files do not have to have a header row.

the code i have so far simply fills a dataset

Dim com As New OleDbDataAdapter(xl, con)<br />
        Dim ds As New DataSet<br />
<br />
        com.Fill(ds)


this works just fine and it handles all the data appropriately when the original file has the first row set up as headers

however, if they dont, it grabs the first row of data as the headers, then runs the rest normally. As you can guess, this messes up the output quite a bit.

what i am looking to do, is this:
i already have code in place that checks to see if there is a header row:
if ds.Tables(0).Columns(0).ColumnName <> "recordid" Then

What i want to know is, how do i insert a Header row into the dataset, after it has been created?

______________________
Mr Griffin, eleventy billion is not a number...WTF | :WTF:

-- modified at 15:03 Tuesday 30th August, 2005
AnswerRe: DataSet funkyness Pin
ToddHileHoffer30-Aug-05 9:34
ToddHileHoffer30-Aug-05 9:34 
QuestionStrange icons with black shadows Pin
Mark0630-Aug-05 8:44
Mark0630-Aug-05 8:44 
AnswerRe: Strange icons with black shadows Pin
Mark0630-Aug-05 12:08
Mark0630-Aug-05 12:08 
QuestionGetTypeFromProgID / GetTypeFromCLSID won't create remote object Pin
DaveC42691330-Aug-05 7:17
DaveC42691330-Aug-05 7:17 
QuestionVB Data Report not clearing data Pin
KCTOM30-Aug-05 5:49
KCTOM30-Aug-05 5:49 
Question[Message Deleted] Pin
GZA30-Aug-05 5:48
GZA30-Aug-05 5:48 
AnswerRe: Saving file with variable name Pin
Dave Kreskowiak30-Aug-05 7:30
mveDave Kreskowiak30-Aug-05 7:30 
QuestionDataAdapter - UpdateCommand not working Pin
dptalt30-Aug-05 5:42
dptalt30-Aug-05 5:42 
AnswerRe: DataAdapter - UpdateCommand not working Pin
Mark0630-Aug-05 12:14
Mark0630-Aug-05 12:14 
GeneralRe: DataAdapter - UpdateCommand not working Pin
dptalt31-Aug-05 2:41
dptalt31-Aug-05 2:41 
QuestionWindows Logon in Visual Basic? Pin
sepp130-Aug-05 3:21
sepp130-Aug-05 3:21 
AnswerRe: Windows Logon in Visual Basic? Pin
Dave Kreskowiak30-Aug-05 7:22
mveDave Kreskowiak30-Aug-05 7:22 
AnswerRe: Windows Logon in Visual Basic? Pin
Colin Angus Mackay30-Aug-05 9:40
Colin Angus Mackay30-Aug-05 9:40 
GeneralRe: Windows Logon in Visual Basic? Pin
sepp130-Aug-05 22:00
sepp130-Aug-05 22:00 
GeneralRe: Windows Logon in Visual Basic? Pin
Dave Kreskowiak31-Aug-05 2:33
mveDave Kreskowiak31-Aug-05 2:33 
QuestionFind max value in data Grid Pin
Jeeva Jose30-Aug-05 3:17
Jeeva Jose30-Aug-05 3:17 
AnswerRe: Find max value in data Grid Pin
_mubashir30-Aug-05 4:24
_mubashir30-Aug-05 4:24 

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.