Click here to Skip to main content
16,013,322 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to use merge module for two VB6 projects Pin
Andraw Tang11-Jun-10 5:33
Andraw Tang11-Jun-10 5:33 
QuestionWCF Windows Service - won't "listen" when not start with system user Pin
nlarson1110-Jun-10 4:30
nlarson1110-Jun-10 4:30 
AnswerRe: WCF Windows Service - won't "listen" when not start with system user Pin
Richard MacCutchan10-Jun-10 5:57
mveRichard MacCutchan10-Jun-10 5:57 
AnswerRe: WCF Windows Service - won't "listen" when not start with system user Pin
Richard MacCutchan10-Jun-10 22:57
mveRichard MacCutchan10-Jun-10 22:57 
Questioncustom property at cell level for a datagird vb.net Pin
rasnarakesh9-Jun-10 23:37
rasnarakesh9-Jun-10 23:37 
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 
OK, if you're using .NET 2.0, why are you using the old DataGrid and not the DataGridView?

rasnarakesh wrote:
we already have a property called borderstyle propety at cell level


This tells me that you're using the DataGridView control, not the old DataGrid. Yes, there is a huge difference in how they work.

In either case, the problem you have is that each column renders its cells, not the row or the grid. Since each column knows how to render it's own data type (TextBox, ComboBox, ...) you have to create a new DataGridViewColumn class for each of those column styles you're using. You cannot change which class those columns inherit from, so you now have to create your own versions of them, add this property and the required drawing code.

You can read more about this here[^]. It's a pretty involved process...

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




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 
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 

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.