//********message.proto*********
message CommandMessageList{
repeated CommandMessage Command=1;
}
message CommandMessage {
required int32 ActionID = 1;
required string FromJID = 2;
optional string ReplyJID = 3;
required string Command = 4;
repeated string Parameters= 5;
}
//C# code
CommandMessageList.Builder listBuilder = CommandMessageList.CreateBuilder();
CommandMessage.Builder cmdBuilder1 = CommandMessage.CreateBuilder();
cmdBuilder1.Command = "c1";
CommandMessage.Builder cmdBuilder2 = CommandMessage.CreateBuilder();
cmdBuilder2.Command = "c2";
listBuilder.AddCommand(cmdBuilder1.BuildPartial());
listBuilder.AddCommand(cmdBuilder2.BuildPartial());
CommandMessageList list = listBuilder.BuildPartial();
dataGridView1.DataSource = list.CommandList;
but nothing was loaded to the dataGridView1.. I wonder how to bind protobuf data to DataGridView control. Thank you!