Click here to Skip to main content
15,890,579 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Form Opacity Pin
Dave Kreskowiak14-Jan-08 7:19
mveDave Kreskowiak14-Jan-08 7:19 
GeneralQuery is Too complex Pin
Rupesh Kumar Swami14-Jan-08 2:28
Rupesh Kumar Swami14-Jan-08 2:28 
GeneralRe: Query is Too complex Pin
Dave Kreskowiak14-Jan-08 5:30
mveDave Kreskowiak14-Jan-08 5:30 
GeneralProblem While Running Crystal Report 10.0 on .Net 2.0 Pin
Member 399053014-Jan-08 2:23
Member 399053014-Jan-08 2:23 
GeneralRe: Problem While Running Crystal Report 10.0 on .Net 2.0 Pin
Dave Kreskowiak14-Jan-08 5:29
mveDave Kreskowiak14-Jan-08 5:29 
QuestionHow to change the excel sheet dynamically using vb .net or java Pin
ANKUR2214-Jan-08 1:26
ANKUR2214-Jan-08 1:26 
GeneralRe: How to change the excel sheet dynamically using vb .net or java Pin
Dave Kreskowiak14-Jan-08 5:23
mveDave Kreskowiak14-Jan-08 5:23 
QuestionHow do I format values in a grid Pin
Central_IT14-Jan-08 0:57
Central_IT14-Jan-08 0:57 
I wonder if anyone can help me. I am using VB.Net 2003

I have a grid that I want to format values in that grid e.g. format to 2 DP or righjt align etc

I tried the following and it does not seem to work.

dr(1) = format(objDR("VGFLOR"), "#0.00")

When I display in the command window it looks fine but displayed it is still the same e.g. 12.3 but I want 12.30 to be displayed.

This is a sample of how I am setting up my grid. There is code missed out.

'setup the grid columns
dt.Columns.Add(New DataColumn("Name", GetType(String)))
dt.Columns.Add(New DataColumn("Department", GetType(String)))
dt.Columns.Add(New DataColumn("Salary", GetType(Double)))

Do Until objDR.Read = False
dr = dt.NewRow
dr(0) = objDR("NAME") 'Name
dr(1) = objDR("DEPT") 'Department
dr(2) = objDR("SALARY") 'Salary
GeneralRe: How do I format values in a grid Pin
Dave Kreskowiak14-Jan-08 5:20
mveDave Kreskowiak14-Jan-08 5:20 
GeneralTreeview Icons distorted Pin
Mbire13-Jan-08 23:13
Mbire13-Jan-08 23:13 
GeneralRe: Treeview Icons distorted Pin
Dave Kreskowiak16-Jan-08 2:20
mveDave Kreskowiak16-Jan-08 2:20 
GeneralRe: Treeview Icons distorted Pin
Mbire16-Jan-08 2:51
Mbire16-Jan-08 2:51 
GeneralRe: Treeview Icons distorted Pin
Dave Kreskowiak16-Jan-08 3:43
mveDave Kreskowiak16-Jan-08 3:43 
GeneralRe: Treeview Icons distorted Pin
Mbire16-Jan-08 4:08
Mbire16-Jan-08 4:08 
GeneralRe: Treeview Icons distorted Pin
Dave Kreskowiak16-Jan-08 6:53
mveDave Kreskowiak16-Jan-08 6:53 
GeneralRe: Treeview Icons distorted Pin
Mbire16-Jan-08 20:14
Mbire16-Jan-08 20:14 
Generalexporting to excel Pin
sivaram praveen13-Jan-08 20:44
sivaram praveen13-Jan-08 20:44 
GeneralRe: exporting to excel Pin
pmarfleet13-Jan-08 21:58
pmarfleet13-Jan-08 21:58 
Generalopening a excel application Pin
Prakash_Mishra13-Jan-08 20:38
Prakash_Mishra13-Jan-08 20:38 
GeneralRe: opening a excel application Pin
Steven J Jowett15-Jan-08 0:26
Steven J Jowett15-Jan-08 0:26 
QuestionDisplaying text (title) on row headers in a dataGridView? Pin
Benny_Lava13-Jan-08 19:18
Benny_Lava13-Jan-08 19:18 
AnswerRe: Displaying text (title) on row headers in a dataGridView? Pin
Dave Kreskowiak14-Jan-08 5:13
mveDave Kreskowiak14-Jan-08 5:13 
GeneralRecognizing New Database Tables in the Data Set Pin
AAGTHosting13-Jan-08 18:24
AAGTHosting13-Jan-08 18:24 
GeneralRe: Recognizing New Database Tables in the Data Set Pin
pmarfleet13-Jan-08 21:52
pmarfleet13-Jan-08 21:52 
GeneralRe: Recognizing New Database Tables in the Data Set Pin
AAGTHosting14-Jan-08 7:09
AAGTHosting14-Jan-08 7:09 

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.