Click here to Skip to main content
15,916,945 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I set my Parent Window with Managed Code Pin
Heath Stewart2-Apr-04 9:29
protectorHeath Stewart2-Apr-04 9:29 
GeneralPosting a URL to a CiscoIPPhone Pin
nathan521742-Apr-04 5:31
nathan521742-Apr-04 5:31 
GeneralRe: Posting a URL to a CiscoIPPhone Pin
nathanreynolds2-Apr-04 5:34
nathanreynolds2-Apr-04 5:34 
GeneralRe: Posting a URL to a CiscoIPPhone Pin
Heath Stewart2-Apr-04 9:32
protectorHeath Stewart2-Apr-04 9:32 
GeneralRe: Posting a URL to a CiscoIPPhone Pin
nathan521745-Apr-04 4:24
nathan521745-Apr-04 4:24 
GeneralRe: Posting a URL to a CiscoIPPhone Pin
Heath Stewart5-Apr-04 4:52
protectorHeath Stewart5-Apr-04 4:52 
QuestionCurrent Cell Back Color in a DataGrid? Pin
benqazou2-Apr-04 5:24
benqazou2-Apr-04 5:24 
AnswerRe: Current Cell Back Color in a DataGrid? Pin
Heath Stewart2-Apr-04 9:37
protectorHeath Stewart2-Apr-04 9:37 
Yes, but you'll need to extend the DataGridColumnStyle - or the DataGridTextBoxColumn and DataGridBoolColumn to avoid implementing all their functionality - and add a BackColor (for example - could be named whatever you want) property. In the override for Edit, set the BackColor and then call base.Edit. The the overrides for Abort and Commit, reset the BackColor to the default and again call the method on the base class. In the Paint override, use the provided Graphics object to paint the background using the BackColor value on your class then call base.Paint.

See Changing the background color of cells in a DataGrid[^] for an example of conditional painting like this.

 

Microsoft MVP, Visual C#
My Articles
GeneralDatagrid, handling events Pin
benqazou2-Apr-04 5:09
benqazou2-Apr-04 5:09 
GeneralRe: Datagrid, handling events Pin
Heath Stewart2-Apr-04 9:39
protectorHeath Stewart2-Apr-04 9:39 
GeneralPassing data to a form. Pin
Demian Panello2-Apr-04 4:58
Demian Panello2-Apr-04 4:58 
GeneralRe: Passing data to a form. Pin
CWIZO2-Apr-04 8:01
CWIZO2-Apr-04 8:01 
GeneralRe: Passing data to a form. Pin
Heath Stewart2-Apr-04 9:42
protectorHeath Stewart2-Apr-04 9:42 
GeneralRe: Passing data to a form. Pin
Demian Panello2-Apr-04 13:26
Demian Panello2-Apr-04 13:26 
GeneralPersistant DefaultValueAttributes Pin
ajenny2-Apr-04 4:04
ajenny2-Apr-04 4:04 
GeneralRe: Persistant DefaultValueAttributes Pin
Heath Stewart2-Apr-04 9:45
protectorHeath Stewart2-Apr-04 9:45 
GeneralUpdating Controls included in other controls Pin
veroBT2-Apr-04 4:02
veroBT2-Apr-04 4:02 
GeneralRe: Updating Controls included in other controls Pin
Heath Stewart2-Apr-04 9:47
protectorHeath Stewart2-Apr-04 9:47 
QuestionSsh in c#?? Pin
polkiujhy2-Apr-04 3:44
polkiujhy2-Apr-04 3:44 
AnswerRe: Ssh in c#?? Pin
Dave Kreskowiak2-Apr-04 4:08
mveDave Kreskowiak2-Apr-04 4:08 
GeneralRe: Ssh in c#?? Pin
polkiujhy2-Apr-04 5:43
polkiujhy2-Apr-04 5:43 
GeneralRe: Ssh in c#?? Pin
Dave Kreskowiak2-Apr-04 5:48
mveDave Kreskowiak2-Apr-04 5:48 
GeneralRe: Ssh in c#?? Pin
Heath Stewart2-Apr-04 9:50
protectorHeath Stewart2-Apr-04 9:50 
GeneralPlease Help Pin
Nicholas Naddaf2-Apr-04 3:30
Nicholas Naddaf2-Apr-04 3:30 
QuestionC# syntax question? Pin
Anonymous2-Apr-04 3:12
Anonymous2-Apr-04 3:12 

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.