Click here to Skip to main content
16,006,594 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to enable only a single column of datagrid Pin
Gagan G13-Sep-06 22:49
Gagan G13-Sep-06 22:49 
AnswerRe: how to enable only a single column of datagrid Pin
Stephen McGuire14-Sep-06 1:26
Stephen McGuire14-Sep-06 1:26 
AnswerRe: how to enable only a single column of datagrid Pin
dptalt14-Sep-06 5:45
dptalt14-Sep-06 5:45 
QuestionCount the duplicate values stored in the database Pin
Nikhil Bandekar13-Sep-06 22:45
Nikhil Bandekar13-Sep-06 22:45 
AnswerRe: Count the duplicate values stored in the database Pin
Tamimi - Code13-Sep-06 23:08
Tamimi - Code13-Sep-06 23:08 
QuestionHOW TO DISPLAY GROUP HEADER EVEN DONT HAVE RECORDS IN DETAIL SECTION Pin
KhadijaYaseen13-Sep-06 21:32
KhadijaYaseen13-Sep-06 21:32 
AnswerRe: HOW TO DISPLAY GROUP HEADER EVEN DONT HAVE RECORDS IN DETAIL SECTION Pin
anujose13-Sep-06 23:53
anujose13-Sep-06 23:53 
QuestionMerging cells in Excel using vb.net code Pin
anujose13-Sep-06 18:48
anujose13-Sep-06 18:48 
Hi,

i want to merge 2 cells in excel when i am Exporting data from datagrid to cells. how can i do that .please send me a reply.



i am using code like this to export data

Dim XlApp As Excel.Application
Dim XlBk As Excel.Workbook
Dim XlSht As Excel.Worksheet
Dim r As Excel.Range
XlApp = CreateObject("Excel.Application")
XlBk = XlApp.Workbooks.Add
XlSht = XlBk.Worksheets(1)
XlApp.Visible = True

XlApp.Cells(1, 2).Font.Name = "Arial"
XlApp.Cells(1,2).Font.Bold = True
XlApp.Cells(1, 2).Font.Size = 9
XlApp.Cells(1, 2).value = "Mode Of Shipment"
r = XlApp.Cells(1, 2)
r.ColumnWidth = "Mode Of Shipment".ToString.Length * 1.5


XlApp.Cells(2, 2).Font.Name = "Arial"
XlApp.Cells(2, 2).Font.Bold = False
XlApp.Cells(2, 2).Font.Size = 9
XlApp.Cells(2, 2).value = DtGenReport.Rows(0)("Item").


if the heading is large i want to merge 2 cells.


Thanks and Rgards
Anu
Questionchange format of datepicker from US to UK Pin
steve_rm13-Sep-06 18:47
steve_rm13-Sep-06 18:47 
AnswerRe: change format of datepicker from US to UK Pin
lmoelleb13-Sep-06 20:50
lmoelleb13-Sep-06 20:50 
AnswerRe: change format of datepicker from US to UK Pin
dptalt14-Sep-06 5:50
dptalt14-Sep-06 5:50 
QuestionListView! Please help! Urgent! Pin
charleslau285513-Sep-06 15:37
charleslau285513-Sep-06 15:37 
AnswerRe: ListView! Please help! Urgent! Pin
Christian Graus13-Sep-06 19:13
protectorChristian Graus13-Sep-06 19:13 
AnswerRe: ListView! Please help! Urgent! Pin
sa.Eish13-Sep-06 20:35
sa.Eish13-Sep-06 20:35 
AnswerRe: ListView! Please help! Urgent! Pin
Stephen McGuire14-Sep-06 9:02
Stephen McGuire14-Sep-06 9:02 
QuestionVirtual Network Interface Pin
mkrelli13-Sep-06 13:28
mkrelli13-Sep-06 13:28 
AnswerRe: Virtual Network Interface Pin
progload13-Sep-06 14:42
progload13-Sep-06 14:42 
AnswerRe: Virtual Network Interface Pin
Dave Kreskowiak14-Sep-06 6:33
mveDave Kreskowiak14-Sep-06 6:33 
GeneralRe: Help Required to Improve Project Pin
Christian Graus13-Sep-06 11:55
protectorChristian Graus13-Sep-06 11:55 
Questionfileinfo to string?? Pin
Silver-Grey13-Sep-06 6:36
Silver-Grey13-Sep-06 6:36 
AnswerRe: fileinfo to string?? Pin
Christian Graus13-Sep-06 11:57
protectorChristian Graus13-Sep-06 11:57 
AnswerRe: fileinfo to string?? Pin
Gideon Engelberth13-Sep-06 15:27
Gideon Engelberth13-Sep-06 15:27 
AnswerRe: fileinfo to string?? Pin
manish2414-Sep-06 0:49
manish2414-Sep-06 0:49 
AnswerRe: fileinfo to string?? Pin
manish2414-Sep-06 0:52
manish2414-Sep-06 0:52 
QuestionHow to determine an array is empty in VBA Pin
mmhu13-Sep-06 4:27
mmhu13-Sep-06 4:27 

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.