I've got these codes : 

//********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!

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/protobuf/-/zL1hVDA5xDgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to