I have a program coded in c# that receives UDP packets from different sources with multiple IP address.
I have created a datatable that store all those IP addresses and informations linked to the sources, and I try to display this table in the program when I run it.
Because the program is constantly listening to UDP packets, the viewing of the table should be updated in real time.
I have searched for Datagridview, but I didn't success to use it.
I would like to show on screen in a very simple way something like this : Data Viewing
static void Main(string[] args)
{
DataTable CommunicationTable = new DataTable();
initDataTableCommunication(CommunicationTable);
senderIdentifier SmartphoneTest = new senderIdentifier();
SmartphoneTest.addressIP = "192.120.120.0";
SmartphoneTest.message = "Started";
SmartphoneTest.port = 11000;
newEntryDateTableCom(SmartphoneTest, CommunicationTable);
senderIdentifier SmartphoneTest2 = new senderIdentifier();
SmartphoneTest2.addressIP = "192.120.45.9";
SmartphoneTest2.message = "Done";
SmartphoneTest2.port = 11000;
newEntryDateTableCom(SmartphoneTest2, CommunicationTable);
Here I fulfilled "manually" the DataTable, but the new entries will be created by receiving the UDP Packets
For the moment, I can only visualize the DataTable with the Debug, using the "scope" on the watch of the DataTable (Visual Studio)
Sorry for my poor English and thanks in advance