Click here to Skip to main content
15,910,083 members
Home / Discussions / C#
   

C#

 
QuestionCrystal Report Deployment in C# Pin
aarontan12-Jan-06 18:16
aarontan12-Jan-06 18:16 
AnswerRe: Crystal Report Deployment in C# Pin
CooperWu12-Jan-06 21:24
CooperWu12-Jan-06 21:24 
QuestionHttpWebRequest and SSL Authentication Pin
Skoder12-Jan-06 17:48
Skoder12-Jan-06 17:48 
QuestionDataGrid Issue, Please Help Pin
student_rhr12-Jan-06 16:41
student_rhr12-Jan-06 16:41 
AnswerRe: DataGrid Issue, Please Help Pin
Daniel Santillanes13-Jan-06 4:50
professionalDaniel Santillanes13-Jan-06 4:50 
AnswerRe: DataGrid Issue, Please Help Pin
Drew McGhie13-Jan-06 5:49
Drew McGhie13-Jan-06 5:49 
GeneralRe: DataGrid Issue, Please Help Pin
student_rhr13-Jan-06 6:35
student_rhr13-Jan-06 6:35 
GeneralRe: DataGrid Issue, Please Help Pin
student_rhr13-Jan-06 6:53
student_rhr13-Jan-06 6:53 
Here is where I am setting the SelectedForeground and SelectedBackground:

<code>
DataGridTableStyle dgTableStyle		= new DataGridTableStyle();
DataGridTextBoxColumn dgCheckNumber	= new DataGridTextBoxColumn();
DataGridTextBoxColumn dgDateColumn	= new DataGridTextBoxColumn();
DataGridTextBoxColumn dgCCtrans		= new DataGridTextBoxColumn();
PaintedColumnStyle dgAmountColumn	= new PaintedColumnStyle();
DataGridTextBoxColumn dgBalanceColumn	= new DataGridTextBoxColumn();
DataGridTextBoxColumn dgCommentColumn	= new DataGridTextBoxColumn();
PaintedColumnStyle dgPaintedColumn	= new PaintedColumnStyle();
</code>
dgTC.TableStyles.AddRange(new DataGridTableStyle[] {dgTableStyle});

dgTableStyle.DataGrid = dgTC;
dgTableStyle.AllowSorting = true;
dgTableStyle.AlternatingBackColor	= Color.GhostWhite;
dgTableStyle.BackColor		= Color.GhostWhite;
dgTableStyle.GridLineColor	= Color.RoyalBlue;
dgTableStyle.HeaderBackColor	= Color.MidnightBlue;
dgTableStyle.HeaderForeColor	= Color.Lavender;
dgTableStyle.LinkColor		= Color.Teal;
dgTableStyle.SelectionBackColor	= Color.Teal;
dgTableStyle.SelectionForeColor	= Color.PaleGreen;
dgTableStyle.ForeColor		= Color.MidnightBlue;

dgTableStyle.GridColumnStyles.AddRange(new DataGridColumnStyle[] 

{dgPaintedColumn,dgCheckNumber,dgDateColumn,dgCCtrans,dgAmountColumn,dgBalanc
eColumn,dgCommentColumn});


Could you please tell me where elase do I need to set the SeletionForeColor and SelectionBackColor in order to get these to apply to my custom column?
Thanks a bunch
QuestionGenerics and the form designer in VS2005 Pin
Luis Alonso Ramos12-Jan-06 16:26
Luis Alonso Ramos12-Jan-06 16:26 
GeneralRe: Generics and the form designer in VS2005 Pin
Luis Alonso Ramos12-Jan-06 19:01
Luis Alonso Ramos12-Jan-06 19:01 
QuestionGenerate exe file from the C# program Pin
tadung12-Jan-06 15:04
tadung12-Jan-06 15:04 
AnswerRe: Generate exe file from the C# program Pin
Christian Graus12-Jan-06 15:12
protectorChristian Graus12-Jan-06 15:12 
GeneralRe: Generate exe file from the C# program Pin
tadung12-Jan-06 15:55
tadung12-Jan-06 15:55 
GeneralRe: Generate exe file from the C# program Pin
Christian Graus12-Jan-06 15:56
protectorChristian Graus12-Jan-06 15:56 
GeneralRe: Generate exe file from the C# program Pin
tadung12-Jan-06 15:58
tadung12-Jan-06 15:58 
QuestionSearch and Replace in Word Pin
CliffAnderson12-Jan-06 13:55
CliffAnderson12-Jan-06 13:55 
AnswerRe: Search and Replace in Word Pin
Nick Parker12-Jan-06 14:19
protectorNick Parker12-Jan-06 14:19 
QuestionDatabase Microsoft Access Pin
Sasuko12-Jan-06 12:36
Sasuko12-Jan-06 12:36 
AnswerRe: Database Microsoft Access Pin
Christian Graus12-Jan-06 12:49
protectorChristian Graus12-Jan-06 12:49 
GeneralRe: Database Microsoft Access Pin
Daniel Santillanes12-Jan-06 13:02
professionalDaniel Santillanes12-Jan-06 13:02 
GeneralRe: Database Microsoft Access Pin
Christian Graus12-Jan-06 13:07
protectorChristian Graus12-Jan-06 13:07 
GeneralRe: Database Microsoft Access Pin
Daniel Santillanes12-Jan-06 13:12
professionalDaniel Santillanes12-Jan-06 13:12 
AnswerRe: Database Microsoft Access Pin
pliu_200012-Jan-06 13:34
pliu_200012-Jan-06 13:34 
QuestionOptimization of unsafe code Pin
Robert Rohde12-Jan-06 12:26
Robert Rohde12-Jan-06 12:26 
AnswerRe: Optimization of unsafe code Pin
Christian Graus12-Jan-06 12:48
protectorChristian Graus12-Jan-06 12:48 

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.