Click here to Skip to main content
15,901,035 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Generate zip file through vb.net Pin
Nilesh Hapse29-Jan-07 23:37
Nilesh Hapse29-Jan-07 23:37 
QuestionCrystal report and vs.net for office tool Pin
Mekong River29-Jan-07 15:53
Mekong River29-Jan-07 15:53 
QuestionWININET from VB 6 to VB .NET Pin
vtnguyen29-Jan-07 9:26
vtnguyen29-Jan-07 9:26 
AnswerRe: WININET from VB 6 to VB .NET Pin
Vasudevan Deepak Kumar29-Jan-07 22:31
Vasudevan Deepak Kumar29-Jan-07 22:31 
QuestionFormatting an excel spreadsheet Pin
leckey29-Jan-07 9:03
leckey29-Jan-07 9:03 
AnswerRe: Formatting an excel spreadsheet Pin
Johan Hakkesteegt30-Jan-07 0:56
Johan Hakkesteegt30-Jan-07 0:56 
QuestionIsolated storage settings lost when I re-publish Pin
KreativeKai29-Jan-07 7:50
professionalKreativeKai29-Jan-07 7:50 
QuestionTrying to Customize the DataGridView cell values [modified] Pin
GWbasicProgrammer29-Jan-07 7:25
GWbasicProgrammer29-Jan-07 7:25 
This is from one of the previous thread and I only got one response. One of the good fellow at CodeProject told me to use Struct. But I know there is a natural way to customize the controls to have more than value or to change their value type.

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"<br />
DataGridView1.item(0,0).myValue2 = "This is Second Custom Value"<br />
DataGridView1.item(0,0).myValue3 = "This is third Custom Value"


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

<br />
Public Class myCustomGridViewCell<br />
  Inherits DataGridViewCell<br />
  Public myValue1 As String<br />
  Public myValue2 As String<br />
  Public myValue3 As String<br />
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.


-- modified at 13:50 Monday 29th January, 2007
QuestionMy.Setting StringCollection Pin
Marc Soleda29-Jan-07 6:56
Marc Soleda29-Jan-07 6:56 
AnswerRe: My.Setting StringCollection Pin
Christian Graus29-Jan-07 9:06
protectorChristian Graus29-Jan-07 9:06 
QuestionWSH - VB Script - use value got from an XML file Pin
Docteur_Z29-Jan-07 6:51
Docteur_Z29-Jan-07 6:51 
QuestionGetFiles versus GetDirectories Pin
GeorgieMPorgie29-Jan-07 4:56
GeorgieMPorgie29-Jan-07 4:56 
AnswerRe: GetFiles versus GetDirectories Pin
TwoFaced29-Jan-07 6:47
TwoFaced29-Jan-07 6:47 
GeneralRe: GetFiles versus GetDirectories Pin
GeorgieMPorgie30-Jan-07 5:16
GeorgieMPorgie30-Jan-07 5:16 
QuestionHow To Create Alert Message Box In System Try Pin
Ankush Komarwar29-Jan-07 3:56
Ankush Komarwar29-Jan-07 3:56 
AnswerRe: How To Create Alert Message Box In System Try Pin
Guffa29-Jan-07 4:36
Guffa29-Jan-07 4:36 
AnswerRe: How To Create Alert Message Box In System Try Pin
Nilesh Hapse30-Jan-07 1:07
Nilesh Hapse30-Jan-07 1:07 
Question[PPC] Event when loaded ... [modified] Pin
ChPortos29-Jan-07 3:32
ChPortos29-Jan-07 3:32 
Questiontemporary internet files Pin
wullie5829-Jan-07 1:59
wullie5829-Jan-07 1:59 
AnswerRe: temporary internet files Pin
Vasudevan Deepak Kumar29-Jan-07 22:34
Vasudevan Deepak Kumar29-Jan-07 22:34 
QuestionInt value into word do Pin
harveyhanson29-Jan-07 1:39
harveyhanson29-Jan-07 1:39 
AnswerANYONE??? Pin
harveyhanson29-Jan-07 12:53
harveyhanson29-Jan-07 12:53 
GeneralRe: ANYONE??? Pin
Christian Graus29-Jan-07 13:40
protectorChristian Graus29-Jan-07 13:40 
GeneralRe: ANYONE??? Pin
harveyhanson29-Jan-07 15:06
harveyhanson29-Jan-07 15:06 
GeneralRe: ANYONE??? Pin
Christian Graus29-Jan-07 15:53
protectorChristian Graus29-Jan-07 15:53 

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.