Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display Data in a table win form C#

I need to present data in a tabular form in windows form using c#. Basically, I will extract data from received messages (not database) then display it in a table by specifying the column and row.

First, I started with TableLayoutPanel but I discovered that I should add controls for each cell which is not what I need and it is tedious.

Do you have any better suggestion? Much appreciated.

like image 902
newbieLinuxCpp Avatar asked Mar 19 '23 20:03

newbieLinuxCpp


1 Answers

I think you're best off using a DataGridView, see this link.

It allows you to assign a datasource (which you can specify yourself). The image below demonstrates one of many ways that you can make your dataview look like.

enter image description here

There is even a nice tutorial which you can follow right here.

like image 76
Matthijs Avatar answered Apr 02 '23 13:04

Matthijs