Click here to Skip to main content
15,902,635 members
Home / Discussions / C#
   

C#

 
AnswerRe: Change the ide visual studio c# Pin
DaveyM692-Nov-08 9:34
professionalDaveyM692-Nov-08 9:34 
GeneralRe: Change the ide visual studio c# Pin
dianikol2-Nov-08 11:10
dianikol2-Nov-08 11:10 
GeneralRe: Change the ide visual studio c# Pin
Dave Kreskowiak2-Nov-08 11:36
mveDave Kreskowiak2-Nov-08 11:36 
GeneralRe: Change the ide visual studio c# Pin
DaveyM692-Nov-08 12:09
professionalDaveyM692-Nov-08 12:09 
QuestionHow to fill the combobox with array list? Pin
zeeShan anSari2-Nov-08 3:44
zeeShan anSari2-Nov-08 3:44 
AnswerRe: How to fill the combobox with array list? Pin
Mohammad Dayyan2-Nov-08 10:21
Mohammad Dayyan2-Nov-08 10:21 
QuestionDatagridview changing the row backcolor based on value of coloum in the same grid view Pin
Member 39538562-Nov-08 1:42
Member 39538562-Nov-08 1:42 
AnswerRe: Datagridview changing the row backcolor based on value of coloum in the same grid view [modified] Pin
Pedram Behroozi2-Nov-08 2:35
Pedram Behroozi2-Nov-08 2:35 
dataGridView1.RowsDefaultCellStyle.BackColor = Color.Red;
dataGridView1.Rows[index].DefaultCellStyle.BackColor = Color.Red;

And your index can change depending on your condition.

[Edit]
And if you want to change multiple rows BackColor:
DataGridViewSelectedRowCollection coll = dataGridView1.SelectedRows;
foreach (DataGridViewRow row in coll)
    row.DefaultCellStyle.BackColor = Color.Red;

[/Edit]

When you're alone in the Dark, Fear will protect you...

modified on Sunday, November 2, 2008 8:41 AM

GeneralRe: Datagridview changing the row backcolor based on value of coloum in the same grid view Pin
Member 39538562-Nov-08 3:03
Member 39538562-Nov-08 3:03 
GeneralRe: Datagridview changing the row backcolor based on value of coloum in the same grid view Pin
Pedram Behroozi2-Nov-08 4:35
Pedram Behroozi2-Nov-08 4:35 
AnswerRe: Datagridview changing the row backcolor based on value of coloum in the same grid view Pin
richardw482-Nov-08 4:56
richardw482-Nov-08 4:56 
GeneralRe: Datagridview changing the row backcolor based on value of coloum in the same grid view Pin
Member 39538562-Nov-08 6:54
Member 39538562-Nov-08 6:54 
QuestionData grid view format Pin
muharrem2-Nov-08 1:16
muharrem2-Nov-08 1:16 
QuestionGet values from ListBox Pin
zeeShan anSari1-Nov-08 23:50
zeeShan anSari1-Nov-08 23:50 
AnswerRe: Get values from ListBox Pin
Wendelius2-Nov-08 1:02
mentorWendelius2-Nov-08 1:02 
AnswerRe: Get values from ListBox Pin
Hossein Afyuoni2-Nov-08 1:18
Hossein Afyuoni2-Nov-08 1:18 
AnswerRe: Get values from ListBox Pin
zeeShan anSari2-Nov-08 3:36
zeeShan anSari2-Nov-08 3:36 
GeneralRe: Get values from ListBox Pin
Guffa2-Nov-08 10:19
Guffa2-Nov-08 10:19 
QuestionHow to use DFS algorithm for maze ? Pin
sitnet1-Nov-08 22:54
sitnet1-Nov-08 22:54 
AnswerRe: How to use DFS algorithm for maze ? Pin
Pedram Behroozi1-Nov-08 23:48
Pedram Behroozi1-Nov-08 23:48 
AnswerRe: How to use DFS algorithm for maze ? Pin
Meer Osman Ali2-Nov-08 3:13
Meer Osman Ali2-Nov-08 3:13 
GeneralRe: How to use DFS algorithm for maze ? Pin
Pete O'Hanlon2-Nov-08 10:32
mvePete O'Hanlon2-Nov-08 10:32 
AnswerRe: How to use DFS algorithm for maze ? Pin
Mark Churchill2-Nov-08 14:32
Mark Churchill2-Nov-08 14:32 
QuestionHow to grab text from another windows application in c# ? Pin
parinya21-Nov-08 19:40
parinya21-Nov-08 19:40 
AnswerRe: How to grab text from another windows application in c# ? Pin
User 66581-Nov-08 23:02
User 66581-Nov-08 23:02 

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.