Click here to Skip to main content
16,004,944 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: FTP implementation Pin
Dave Kreskowiak17-Jun-04 8:24
mveDave Kreskowiak17-Jun-04 8:24 
GeneralRe: FTP implementation Pin
hmshmsm17-Jun-04 8:44
hmshmsm17-Jun-04 8:44 
GeneralRe: FTP implementation Pin
Dave Kreskowiak17-Jun-04 9:34
mveDave Kreskowiak17-Jun-04 9:34 
GeneralRe: FTP implementation Pin
hmshmsm17-Jun-04 10:38
hmshmsm17-Jun-04 10:38 
GeneralRe: FTP implementation Pin
Dave Kreskowiak18-Jun-04 2:20
mveDave Kreskowiak18-Jun-04 2:20 
GeneralRe: FTP implementation Pin
Anonymous18-Jun-04 4:08
Anonymous18-Jun-04 4:08 
GeneralRe: FTP implementation Pin
hmshmsm17-Jun-04 6:54
hmshmsm17-Jun-04 6:54 
QuestionHow to manage column's color in DataGrid Pin
jkusmanto17-Jun-04 3:28
jkusmanto17-Jun-04 3:28 
Hi there,
Can anybody tell me how to change the column's color in DataGrid ?
I have tried, but didn't work.
Here below is my code.
There is an error at line ##. The error message is :
"An unhandled exception of type 'System.NullReferenceException' occurred in Badminton.exe
Additional information: Object reference not set to an instance of an object."

Thanks for help.

My code:
==================
Private Sub frmGridDisplay_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load
DbDA_Bad.Fill(DS_Bad)
Dim TS_Bad As New DataGridTableStyle
With TS_Bad
.MappingName = "Collection"
.HeaderBackColor = Color.YellowGreen
.HeaderForeColor = Color.Green
.HeaderFont = New Font("Microsoft Sans Serif", 10.0!,
FontStyle.Bold, GraphicsUnit.Point, CType(0, Byte))
End With
Dim kl_code As New DataGridTextBoxColumn
kl_code.MappingName = "bt_code"
kl_code.HeaderText = "Code"
kl_code.Width = 60

'====These two lines didn't work. There an erro :

## kl_code.DataGridTableStyle.BackColor = kl_color.YellowGreen
kl_code.DataGridTableStyle.ForeColor = kl_color.Tomato

Dim kl_m1event As New DataGridTextBoxColumn
kl_m1event.MappingName = "bt_m1event"
kl_m1event.HeaderText = "Event"
kl_m1event.Width = 175

TS_Bad.GridColumnStyles.AddRange(New DataGridColumnStyle() _
{kl_code, kl_m1event})
DGBad.TableStyles.Add(TS_Bad)
End Sub






AnswerRe: How to manage column's color in DataGrid Pin
Dave Kreskowiak17-Jun-04 5:16
mveDave Kreskowiak17-Jun-04 5:16 
GeneralScrolling in Combobox Pin
17-Jun-04 3:10
suss17-Jun-04 3:10 
GeneralRe: Scrolling in Combobox Pin
Dave Kreskowiak17-Jun-04 4:22
mveDave Kreskowiak17-Jun-04 4:22 
GeneralRe: Scrolling in Combobox Pin
tanstaafl2817-Jun-04 8:57
tanstaafl2817-Jun-04 8:57 
GeneralRe: custom metadata editor in ArcCatalog Pin
Dave Kreskowiak17-Jun-04 3:07
mveDave Kreskowiak17-Jun-04 3:07 
GeneralSearching the Registry Pin
JeremiahSA17-Jun-04 3:02
JeremiahSA17-Jun-04 3:02 
GeneralRe: Searching the Registry Pin
Dave Kreskowiak17-Jun-04 4:10
mveDave Kreskowiak17-Jun-04 4:10 
GeneralRe: Searching the Registry Pin
JeremiahSA17-Jun-04 4:43
JeremiahSA17-Jun-04 4:43 
GeneralRe: Searching the Registry Pin
JeremiahSA17-Jun-04 6:12
JeremiahSA17-Jun-04 6:12 
GeneralRe: Searching the Registry Pin
Dave Kreskowiak17-Jun-04 6:17
mveDave Kreskowiak17-Jun-04 6:17 
GeneralWorking with 2 or more forms! Pin
Dave Kreskowiak17-Jun-04 2:59
mveDave Kreskowiak17-Jun-04 2:59 
GeneralRe: Working with 2 or more forms! Pin
Aaron Eldreth17-Jun-04 4:14
Aaron Eldreth17-Jun-04 4:14 
GeneralRe: Working with 2 or more forms! Pin
Brad Fackrell17-Jun-04 4:32
Brad Fackrell17-Jun-04 4:32 
GeneralRe: Working with 2 or more forms! Pin
Colin Angus Mackay17-Jun-04 5:50
Colin Angus Mackay17-Jun-04 5:50 
GeneralRe: Working with 2 or more forms! Pin
Dave Kreskowiak17-Jun-04 6:15
mveDave Kreskowiak17-Jun-04 6:15 
GeneralRe: Working with 2 or more forms! Pin
Aaron Eldreth17-Jun-04 6:50
Aaron Eldreth17-Jun-04 6:50 
GeneralRe: Working with 2 or more forms! Pin
JeremiahSA17-Jun-04 7:24
JeremiahSA17-Jun-04 7: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.