Click here to Skip to main content
15,924,402 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Listbox Picture Pin
ADY00725-Sep-06 4:50
ADY00725-Sep-06 4:50 
GeneralRe: Listbox Picture Pin
ADY00725-Sep-06 5:02
ADY00725-Sep-06 5:02 
QuestionListbox Picture Pin
ADY00725-Sep-06 9:33
ADY00725-Sep-06 9:33 
Questionfinding sql servers on a network Pin
steve_rm24-Sep-06 3:14
steve_rm24-Sep-06 3:14 
AnswerRe: finding sql servers on a network Pin
Dave Kreskowiak24-Sep-06 4:22
mveDave Kreskowiak24-Sep-06 4:22 
Questionno headings Pin
viji]24-Sep-06 0:16
viji]24-Sep-06 0:16 
AnswerRe: no headings Pin
Dave Kreskowiak24-Sep-06 4:14
mveDave Kreskowiak24-Sep-06 4:14 
GeneralRe: no headings Pin
viji]24-Sep-06 18:53
viji]24-Sep-06 18:53 
hi,
connect the excel with oledb.then

MyCommand = New System.Data.OleDb.OleDbDataAdapter( _
"select * from [Sheet1$]", MyConnection)
ds = New System.Data.DataSet

MyCommand.Fill(ds, "delgrpmember")
For currentRow = 0 To ds.Tables(0).Rows.Count - 1
Dim i As Integer
Dim newRow1 As DataRow = dsExcelExport.Tables("delgrpmember").NewRow()
For i = 0 To colcount - 1
newRow1(i) = ds.Tables(0).Rows(currentRow)(i)
Next
dsExcelExport.Tables("delgrpmember").Rows.Add(newRow1)
Next

daExcelExport.Update(dsExcelExport, "delgrpmember")


In this the first row of the Excel file not contained in the Dataset.I have to import all the used rows including first row to the Dataset.
my Excel file has no headings.
can u help me
GeneralRe: no headings Pin
Dave Kreskowiak25-Sep-06 4:20
mveDave Kreskowiak25-Sep-06 4:20 
QuestionDataGridView2005 Pin
Jeeva Jose23-Sep-06 23:38
Jeeva Jose23-Sep-06 23:38 
Questiondataset not contained the excel first row Pin
viji]23-Sep-06 21:03
viji]23-Sep-06 21:03 
AnswerRe: dataset not contained the excel first row Pin
Guffa23-Sep-06 21:26
Guffa23-Sep-06 21:26 
QuestionNumber Generation Pin
Chira Chandra23-Sep-06 16:40
Chira Chandra23-Sep-06 16:40 
AnswerRe: Number Generation Pin
Christian Graus23-Sep-06 20:00
protectorChristian Graus23-Sep-06 20:00 
GeneralRe: Number Generation Pin
Chira Chandra24-Sep-06 3:43
Chira Chandra24-Sep-06 3:43 
GeneralRe: Number Generation Pin
Christian Graus24-Sep-06 10:49
protectorChristian Graus24-Sep-06 10:49 
GeneralRe: Number Generation Pin
Chira Chandra24-Sep-06 21:42
Chira Chandra24-Sep-06 21:42 
GeneralRe: Number Generation Pin
Christian Graus24-Sep-06 21:46
protectorChristian Graus24-Sep-06 21:46 
QuestionNeed Help for coding VB.NET Pin
Little Ducky23-Sep-06 6:51
Little Ducky23-Sep-06 6:51 
AnswerRe: Need Help for coding VB.NET Pin
Christian Graus23-Sep-06 19:58
protectorChristian Graus23-Sep-06 19:58 
Questionoption button on a wmi script Pin
ashtonnew23-Sep-06 5:53
ashtonnew23-Sep-06 5:53 
AnswerRe: option button on a wmi script Pin
Dave Kreskowiak25-Sep-06 4:41
mveDave Kreskowiak25-Sep-06 4:41 
QuestionObject Oriented Question working in form Pin
Amr M. K.23-Sep-06 5:24
Amr M. K.23-Sep-06 5:24 
AnswerRe: Object Oriented Question working in form Pin
Guffa23-Sep-06 5:50
Guffa23-Sep-06 5:50 
GeneralRe: Object Oriented Question working in form Pin
Amr M. K.23-Sep-06 6:01
Amr M. K.23-Sep-06 6:01 

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.