Click here to Skip to main content
15,927,514 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help with a Generic function Pin
Christian Graus26-Jan-07 21:15
protectorChristian Graus26-Jan-07 21:15 
GeneralRe: Help with a Generic function Pin
TwoFaced26-Jan-07 21:50
TwoFaced26-Jan-07 21:50 
GeneralRe: Help with a Generic function Pin
Christian Graus26-Jan-07 22:36
protectorChristian Graus26-Jan-07 22:36 
QuestionReportViewer "Report processing has been cancelled" [modified] Pin
Kschuler26-Jan-07 9:01
Kschuler26-Jan-07 9:01 
AnswerRe: ReportViewer "Report processing has been cancelled" Pin
Kschuler19-Feb-07 5:29
Kschuler19-Feb-07 5:29 
QuestionHow to override DataGridView Pin
GWbasicProgrammer26-Jan-07 8:17
GWbasicProgrammer26-Jan-07 8:17 
AnswerRe: How to override DataGridView Pin
Christian Graus26-Jan-07 10:08
protectorChristian Graus26-Jan-07 10:08 
GeneralRe: How to override DataGridView Pin
GWbasicProgrammer29-Jan-07 7:18
GWbasicProgrammer29-Jan-07 7:18 
Thank you Christian,

Yes that can be one of the way. But I am not too experienced with it.

There is a object called DataGridViewCell which can be inherited to create my own myCustomGridViewCell

But the thing is how can I tell the DataGridView to use myCustomGridViewCell instead of default DataGridViewCell. I know there is a way but trying to figure out. This will be easiest way of saving as many differect values as possible in one cell. And you can easily Set or Get them by:

DataGridView1.item(0,0).myValue1 = "This is first Custom Value"
DataGridView1.item(0,0).myValue2 = "This is Second Custom Value"
DataGridView1.item(0,0).myValue3 = "This is third Custom Value"

I can create myCustomGridViewCell by creating a Public Class (as shown below)

Public Class myCustomGridViewCell
Inherits DataGridViewCell
Public myValue1 As String
Public myValue2 As String
Public myValue3 As String
End Class



The problem is how can I tell the DataGridView to use myCustomGridViewCell
There will be a way to override the DataGridView1 class to define my custom obects.
Questioneditable listview control header Pin
pnpfriend26-Jan-07 6:17
pnpfriend26-Jan-07 6:17 
Questionloading text from a file... Pin
Sergi2526-Jan-07 4:14
Sergi2526-Jan-07 4:14 
AnswerRe: loading text from a file... Pin
Christian Graus26-Jan-07 10:07
protectorChristian Graus26-Jan-07 10:07 
AnswerRe: loading text from a file... Pin
gladsmhe26-Jan-07 11:04
gladsmhe26-Jan-07 11:04 
AnswerRe: loading text from a file... Pin
Geoff_300127-Jan-07 1:10
Geoff_300127-Jan-07 1:10 
GeneralRe: loading text from a file... Pin
Sergi2528-Jan-07 12:09
Sergi2528-Jan-07 12:09 
QuestionDisplay an Image Pin
Central_IT26-Jan-07 4:07
Central_IT26-Jan-07 4:07 
AnswerRe: Display an Image Pin
Christian Graus26-Jan-07 10:06
protectorChristian Graus26-Jan-07 10:06 
GeneralRe: Display an Image Pin
Central_IT29-Jan-07 22:51
Central_IT29-Jan-07 22:51 
QuestionProblem unloading AppDomain Pin
dlarkin7726-Jan-07 1:19
dlarkin7726-Jan-07 1:19 
Questionbutton Pin
rraajjuu26-Jan-07 0:48
rraajjuu26-Jan-07 0:48 
AnswerRe: button Pin
Christian Graus26-Jan-07 10:06
protectorChristian Graus26-Jan-07 10:06 
Questionsending sms Pin
gladsmhe25-Jan-07 23:32
gladsmhe25-Jan-07 23:32 
AnswerRe: sending sms Pin
andyharman26-Jan-07 10:28
professionalandyharman26-Jan-07 10:28 
QuestionHow to play MP3 file Pin
IqbalVB25-Jan-07 19:40
IqbalVB25-Jan-07 19:40 
AnswerRe: How to play MP3 file Pin
Christian Graus25-Jan-07 22:49
protectorChristian Graus25-Jan-07 22:49 
QuestionWhat's the sqlce connection string in vb.net?? Pin
crazyteh25-Jan-07 19:39
crazyteh25-Jan-07 19:39 

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.