Click here to Skip to main content
16,005,552 members
Home / Discussions / C#
   

C#

 
Questionhowto check datagridview's cell content ? help please ... Pin
cmpeng3427-Jul-06 2:51
cmpeng3427-Jul-06 2:51 
AnswerRe: howto check datagridview's cell content ? help please ... Pin
Mairaaj Khan27-Jul-06 3:23
professionalMairaaj Khan27-Jul-06 3:23 
AnswerRe: howto check datagridview's cell content ? help please ... Pin
Drew McGhie27-Jul-06 5:37
Drew McGhie27-Jul-06 5:37 
QuestionStartInfo.RedirectStandardOutput Pin
NewDev42427-Jul-06 2:31
NewDev42427-Jul-06 2:31 
AnswerRe: StartInfo.RedirectStandardOutput Pin
Ennis Ray Lynch, Jr.27-Jul-06 3:43
Ennis Ray Lynch, Jr.27-Jul-06 3:43 
QuestionRe: StartInfo.RedirectStandardOutput Pin
NewDev42427-Jul-06 17:19
NewDev42427-Jul-06 17:19 
QuestionInstaller Question Pin
JacquesDP27-Jul-06 2:26
JacquesDP27-Jul-06 2:26 
QuestionDynamically change Row.ForeColor Pin
e_LA27-Jul-06 2:20
e_LA27-Jul-06 2:20 
Hi
I work with Framework 2.0 (c#).
I do not know how to dynamicaly change ForeColor of a row in DataGridView depending on value of one column in grid which changes dynamically too.
When I tried to use DataGridView.CellFormatting event only cell where the value is changed has the right forecolor. However other have the old one.
After selecting and deselecting other cells in the row they have right color.
AlternatingStyle is not good because there are more than two kind of colors.

Which event do I have to use and which method call in order to refresh a whole row?

Before (in Framework 1.1) I did it by creating columns inheriting from my own class where method paint was overriden. However I would like to use new features in F 2.0.

Thanks
Ela
AnswerRe: Dynamically change Row.ForeColor Pin
Not Active27-Jul-06 2:32
mentorNot Active27-Jul-06 2:32 
GeneralRe: Dynamically change Row.ForeColor Pin
e_LA27-Jul-06 2:49
e_LA27-Jul-06 2:49 
GeneralRe: Dynamically change Row.ForeColor Pin
e_LA27-Jul-06 3:23
e_LA27-Jul-06 3:23 
GeneralRe: Dynamically change Row.ForeColor Pin
e_LA27-Jul-06 23:53
e_LA27-Jul-06 23:53 
GeneralRe: Dynamically change Row.ForeColor Pin
Not Active28-Jul-06 1:13
mentorNot Active28-Jul-06 1:13 
QuestionObserver pattern in C# Pin
_mistika_27-Jul-06 2:18
_mistika_27-Jul-06 2:18 
AnswerRe: Observer pattern in C# Pin
Colin Angus Mackay27-Jul-06 2:19
Colin Angus Mackay27-Jul-06 2:19 
AnswerRe: Observer pattern in C# Pin
J4amieC27-Jul-06 2:21
J4amieC27-Jul-06 2:21 
QuestionConvert binary data to comma delimited string Pin
VK-Cadec27-Jul-06 2:00
VK-Cadec27-Jul-06 2:00 
AnswerRe: Convert binary data to comma delimited string Pin
darkelv27-Jul-06 2:18
darkelv27-Jul-06 2:18 
GeneralRe: Convert binary data to comma delimited string Pin
Guffa27-Jul-06 7:27
Guffa27-Jul-06 7:27 
QuestionOPENROWSET Problem ! Pin
coolestCoder27-Jul-06 1:50
coolestCoder27-Jul-06 1:50 
QuestionHow to insert picture into excel by c#? Pin
Mirjana_b27-Jul-06 1:27
Mirjana_b27-Jul-06 1:27 
Questionpolygon intersection Pin
praveenqwe27-Jul-06 1:17
praveenqwe27-Jul-06 1:17 
AnswerRe: polygon intersection Pin
J4amieC27-Jul-06 2:18
J4amieC27-Jul-06 2:18 
Question.ini files Pin
Fuhrer27-Jul-06 1:00
Fuhrer27-Jul-06 1:00 
AnswerRe: .ini files Pin
-Dy27-Jul-06 2:51
-Dy27-Jul-06 2:51 

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.