Click here to Skip to main content
15,905,686 members
Home / Discussions / C#
   

C#

 
QuestionEncoding.ASCII.GetString(byte[]) and CR LF Pin
TMattC24-Jan-15 10:42
TMattC24-Jan-15 10:42 
AnswerRe: Encoding.ASCII.GetString(byte[]) and CR LF Pin
Richard Andrew x6424-Jan-15 16:32
professionalRichard Andrew x6424-Jan-15 16:32 
GeneralRe: Encoding.ASCII.GetString(byte[]) and CR LF Pin
TMattC25-Jan-15 1:32
TMattC25-Jan-15 1:32 
Questionmemory leak calling C functions in C# Pin
jpvi24-Jan-15 2:23
jpvi24-Jan-15 2:23 
AnswerRe: memory leak calling C functions in C# Pin
Dave Kreskowiak24-Jan-15 4:26
mveDave Kreskowiak24-Jan-15 4:26 
GeneralRe: memory leak calling C functions in C# Pin
jpvi24-Jan-15 5:11
jpvi24-Jan-15 5:11 
QuestionMvc Fileupload control Pin
Member 1133082524-Jan-15 2:23
Member 1133082524-Jan-15 2:23 
QuestionHow to change background color of a cell in Devexpress Grid when i click select them ? Pin
Member 245846723-Jan-15 22:14
Member 245846723-Jan-15 22:14 
how to change the background color of cell when I click on ? of Devexpress Grid. I have a devexpress xtragrid with 7 columns. I want to change the cell background color when i click select. I try with GridViewInfo but it only takes the columns that are visible on the screen.But I want to do for all the columns.(Not with RowCellStyle) Do you have a solution for that? Thank you!

C#
private static DataTable CreateTable(int RowCount)
        {
            DataTable tbl = new DataTable();
            tbl.Columns.Add("Question", typeof(string));
            tbl.Columns.Add("A", typeof(string));
            tbl.Columns.Add("B", typeof(string));
            tbl.Columns.Add("C", typeof(string));
            tbl.Columns.Add("D", typeof(string));
            tbl.Columns.Add("E", typeof(string));
            for (int i = 0; i < RowCount; i++)
                tbl.Rows.Add(new object[] { String.Format("Question: {0}", i), "", "", "", "", "" });
            return tbl;
        }
                                         
public Form1()
 {
    InitializeComponent();
    gridControl1.DataSource = CreateTable(5);
 }
                                         
private void gridView1_RowCellStyle(object sender, RowCellStyleEventArgs e)
   {
     GridView View = sender as GridView;
     if (e.Column.FieldName == "A" || e.Column.FieldName == "B" || e.Column.FieldName == "C" || e.Column.FieldName == "D" || e.Column.FieldName == "E")
     {
     if (e.RowHandle >= 0)
         { 
            e.Appearance.BackColor = Color.Green;
           //gridView1.Appearance.FocusedCell.BackColor = Color.Green;
         } 
     }
   }

[IMG]http://imagizer.imageshack.com/img540/4282/ZM1KU0.jpg[/IMG]
QuestionDifference between Array and Loop. Pin
Member 1116162523-Jan-15 18:44
Member 1116162523-Jan-15 18:44 
AnswerRe: Difference between Array and Loop. Pin
Peter Leow23-Jan-15 18:58
professionalPeter Leow23-Jan-15 18:58 
AnswerRe: Difference between Array and Loop. Pin
PIEBALDconsult23-Jan-15 19:16
mvePIEBALDconsult23-Jan-15 19:16 
AnswerRe: Difference between Array and Loop. Pin
Richard MacCutchan23-Jan-15 22:40
mveRichard MacCutchan23-Jan-15 22:40 
GeneralRe: Difference between Array and Loop. Pin
harold aptroot23-Jan-15 23:15
harold aptroot23-Jan-15 23:15 
AnswerRe: Difference between Array and Loop. Pin
LLLLGGGG24-Jan-15 2:12
LLLLGGGG24-Jan-15 2:12 
AnswerRe: Difference between Array and Loop. Pin
Santosh K. Tripathi26-Jan-15 22:38
professionalSantosh K. Tripathi26-Jan-15 22:38 
QuestionFill dataGrid from MySQL database in C# WPF Pin
cicill23-Jan-15 17:49
cicill23-Jan-15 17:49 
SuggestionRe: Fill dataGrid from MySQL database in C# WPF Pin
Richard MacCutchan23-Jan-15 22:37
mveRichard MacCutchan23-Jan-15 22:37 
AnswerRe: Fill dataGrid from MySQL database in C# WPF Pin
Mycroft Holmes23-Jan-15 23:16
professionalMycroft Holmes23-Jan-15 23:16 
Questionfee system with keep the record of whole year Pin
Haidar ali23-Jan-15 16:56
Haidar ali23-Jan-15 16:56 
AnswerRe: fee system with keep the record of whole year Pin
Dave Kreskowiak23-Jan-15 17:05
mveDave Kreskowiak23-Jan-15 17:05 
QuestionMulti Lingual C# application - Issue on getting Chinese Language selection option on typing English key combination Pin
Johnson Antony23-Jan-15 15:57
Johnson Antony23-Jan-15 15:57 
QuestionDifference between Array and Loop. Pin
Member 1116162523-Jan-15 3:08
Member 1116162523-Jan-15 3:08 
AnswerRe: Difference between Array and Loop. Pin
Wendelius23-Jan-15 3:17
mentorWendelius23-Jan-15 3:17 
AnswerRe: Difference between Array and Loop. Pin
PIEBALDconsult23-Jan-15 3:24
mvePIEBALDconsult23-Jan-15 3:24 
GeneralRe: Difference between Array and Loop. Pin
nagendrathecoder23-Jan-15 4:05
nagendrathecoder23-Jan-15 4:05 

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.