Bonjour à tous,

J'aimerais modifier un dataGridView avec un string, mais je n'y arrive pas.
L'expression de mon problème est cependant plus complexe.

Voici mon code

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
byte[] receiveBytes = server.Receive(ref ReceivedPoint);
                string returnData = Encoding.ASCII.GetString(receiveBytes);
 
                if (returnData[4] == 'C' && returnData[5] == 'O')
                {
                    dataGridView1.Rows[0].Cells[1].Value = returnData[7];
                    dataGridView1.Rows[0].Cells[2].Value = returnData[8];
                    dataGridView1.Rows[0].Cells[3].Value = returnData[9];
                    dataGridView1.Rows[0].Cells[4].Value = returnData[10];
                    dataGridView1.Rows[0].Cells[5].Value = returnData[11];
                    dataGridView1.Rows[0].Cells[6].Value = returnData[12];
                }
J'aimerai mettre dans Cells[7] les bytes 13, 14 et 15.
En vain.

Pouvez vous m'aider?