Click here to Skip to main content
15,915,724 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: custom property at cell level for a datagird vb.net Pin
Dave Kreskowiak10-Jun-10 7:19
mveDave Kreskowiak10-Jun-10 7:19 
GeneralRe: custom property at cell level for a datagird vb.net Pin
rasnarakesh11-Jun-10 2:08
rasnarakesh11-Jun-10 2:08 
GeneralRe: custom property at cell level for a datagird vb.net Pin
Dave Kreskowiak11-Jun-10 2:26
mveDave Kreskowiak11-Jun-10 2:26 
GeneralRe: custom property at cell level for a datagird vb.net Pin
rasnarakesh11-Jun-10 2:42
rasnarakesh11-Jun-10 2:42 
GeneralRe: custom property at cell level for a datagird vb.net Pin
rasnarakesh11-Jun-10 2:43
rasnarakesh11-Jun-10 2:43 
GeneralRe: custom property at cell level for a datagird vb.net Pin
Henry Minute11-Jun-10 6:24
Henry Minute11-Jun-10 6:24 
GeneralRe: custom property at cell level for a datagird vb.net Pin
rasnarakesh13-Jun-10 19:44
rasnarakesh13-Jun-10 19:44 
GeneralRe: custom property at cell level for a datagird vb.net Pin
Henry Minute14-Jun-10 0:24
Henry Minute14-Jun-10 0:24 
There are only two ways that I can think of to do what you require.

1). Regrettably for you, it means creating a custom (I am assuming that the cell type is TextBox) DataGridViewTextBoxCell and DataGridViewTextBoxColumn and simply adding a BorderColor property then overriding the PaintBorder or Paint methods to use this new property.

2). Create a custom DataGridView add the BorderColor as above (probably better called 'CellBorderColor' since we are subclassing the whole grid) and overriding the OnCellPainting eventhandler to use the color property.

Sorry not to be of more help.
Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
Why do programmers often confuse Halloween and Christmas? - Because 31 Oct = 25 Dec.
Business Myths of the Geek #4 'What you think matters.'

GeneralRe: custom property at cell level for a datagird vb.net Pin
rasnarakesh16-Jun-10 20:52
rasnarakesh16-Jun-10 20:52 
QuestionDetermining if given DateTime is older than a Hour Pin
Member 44205349-Jun-10 21:04
Member 44205349-Jun-10 21:04 
AnswerRe: Determining if given DateTime is older than a Hour Pin
Scubapro9-Jun-10 22:18
Scubapro9-Jun-10 22:18 
AnswerRe: Determining if given DateTime is older than a Hour Pin
Luc Pattyn10-Jun-10 1:54
sitebuilderLuc Pattyn10-Jun-10 1:54 
AnswerRe: Determining if given DateTime is older than a Hour Pin
Anshul R10-Jun-10 19:53
Anshul R10-Jun-10 19:53 
GeneralRe: Determining if given DateTime is older than a Hour Pin
mvdcorput11-Jun-10 23:08
mvdcorput11-Jun-10 23:08 
QuestionHow to change reference path in VB6 Pin
Andraw Tang9-Jun-10 7:00
Andraw Tang9-Jun-10 7:00 
AnswerRe: How to change reference path in VB6 Pin
DaveAuld10-Jun-10 3:16
professionalDaveAuld10-Jun-10 3:16 
GeneralRe: How to change reference path in VB6 Pin
Andraw Tang10-Jun-10 3:24
Andraw Tang10-Jun-10 3:24 
GeneralRe: How to change reference path in VB6 Pin
DaveAuld10-Jun-10 3:42
professionalDaveAuld10-Jun-10 3:42 
GeneralRe: How to change reference path in VB6 Pin
Andraw Tang10-Jun-10 3:44
Andraw Tang10-Jun-10 3:44 
AnswerRe: How to change reference path in VB6 Pin
Anshul R10-Jun-10 19:59
Anshul R10-Jun-10 19:59 
QuestionWindows XP can't start my application Pin
O.G.I.9-Jun-10 1:04
O.G.I.9-Jun-10 1:04 
AnswerRe: Windows XP can't start my application Pin
Luc Pattyn9-Jun-10 2:07
sitebuilderLuc Pattyn9-Jun-10 2:07 
AnswerRe: Windows XP can't start my application Pin
Chris C-B9-Jun-10 3:11
Chris C-B9-Jun-10 3:11 
GeneralRe: Windows XP can't start my application Pin
O.G.I.9-Jun-10 4:21
O.G.I.9-Jun-10 4:21 
GeneralRe: Windows XP can't start my application Pin
Luc Pattyn9-Jun-10 5:37
sitebuilderLuc Pattyn9-Jun-10 5:37 

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.