Click here to Skip to main content
15,900,907 members
Home / Discussions / C#
   

C#

 
QuestionTTS in C# Pin
MatthewG22-Aug-08 5:51
MatthewG22-Aug-08 5:51 
AnswerRe: TTS in C# Pin
SomeGuyThatIsMe22-Aug-08 5:53
SomeGuyThatIsMe22-Aug-08 5:53 
Question[Message Deleted] Pin
AeonBlue22-Aug-08 5:14
AeonBlue22-Aug-08 5:14 
AnswerNot a C# question Pin
led mike22-Aug-08 5:25
led mike22-Aug-08 5:25 
Questionneural network Pin
nth404022-Aug-08 5:08
nth404022-Aug-08 5:08 
JokeRe: neural network Pin
Brady Kelly22-Aug-08 6:14
Brady Kelly22-Aug-08 6:14 
QuestionVirtual Camera Control Pin
tjschilling22-Aug-08 5:06
tjschilling22-Aug-08 5:06 
QuestionRe: Virtual Camera Control Pin
led mike22-Aug-08 5:19
led mike22-Aug-08 5:19 
AnswerRe: Virtual Camera Control Pin
tjschilling22-Aug-08 5:32
tjschilling22-Aug-08 5:32 
GeneralRe: Virtual Camera Control Pin
led mike22-Aug-08 6:13
led mike22-Aug-08 6:13 
Questionmdi child form Pin
laknath22-Aug-08 4:22
laknath22-Aug-08 4:22 
AnswerRe: mdi child form Pin
DaveyM6922-Aug-08 4:37
professionalDaveyM6922-Aug-08 4:37 
AnswerRe: mdi child form Pin
Manas Bhardwaj22-Aug-08 5:00
professionalManas Bhardwaj22-Aug-08 5:00 
QuestionLink Keyboard Shortcut to Button Pin
polishprogrammer22-Aug-08 4:09
polishprogrammer22-Aug-08 4:09 
AnswerRe: Link Keyboard Shortcut to Button Pin
Abhijit Jana22-Aug-08 4:23
professionalAbhijit Jana22-Aug-08 4:23 
GeneralRe: Link Keyboard Shortcut to Button Pin
DaveyM6922-Aug-08 4:25
professionalDaveyM6922-Aug-08 4:25 
GeneralRe: Link Keyboard Shortcut to Button Pin
polishprogrammer22-Aug-08 6:26
polishprogrammer22-Aug-08 6:26 
AnswerRe: Link Keyboard Shortcut to Button Pin
DaveyM6922-Aug-08 4:28
professionalDaveyM6922-Aug-08 4:28 
AnswerRe: Link Keyboard Shortcut to Button Pin
Nirandas22-Aug-08 7:02
Nirandas22-Aug-08 7:02 
Question(WPF)need relative path [modified] Pin
wolfshad322-Aug-08 4:08
wolfshad322-Aug-08 4:08 
AnswerRe: (WPF)need relative path(solved) Pin
wolfshad323-Aug-08 4:48
wolfshad323-Aug-08 4:48 
Questionpage won't fit in A4 (itextsharp dll used) Pin
stephan_00722-Aug-08 4:06
stephan_00722-Aug-08 4:06 
QuestionDefaultNewRowValue disappears from DataGridView Pin
RobScripta22-Aug-08 3:28
professionalRobScripta22-Aug-08 3:28 
I have to fill a column in a datagridview with a default value, therefore I have defined a custom celltype:

public class BNummerCell : DataGridViewTextBoxCell
{
public override object DefaultNewRowValue
{
get

{
return NewCellValue();
}
}

}

From this custom cell I created a custom columntype:

public class BNummerColumn : DataGridViewTextBoxColumn
{
public override DataGridViewCell CellTemplate
{
get
{
return new BNummerCell();
}
set
{
//base.CellTemplate = value;
}
}


}

I have added a column of type BNummerColumn to my DataGridView, and new rows are supplied with a correct default value.
However, whenever I click on the new row, the default value dissapears and doesn't come back.

It must be simple, but I searched already over an hour....

Thanks in advance,

Rob
QuestionVista annoyance: CLR error 80004005 (new info) [updated] Pin
Harvey Saayman22-Aug-08 3:05
Harvey Saayman22-Aug-08 3:05 
AnswerRe: Vista annoyance: CLR error 80004005 (new info) Pin
DaveyM6922-Aug-08 3:32
professionalDaveyM6922-Aug-08 3:32 

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.