Creating a datatable in Razor PAge

omrctlbs

New member
Joined
Apr 13, 2023
Messages
2
Programming Experience
Beginner
Hello, I want to create a data table in razor page. The datatable I want to create is available in the attached image. I want to do this without MVC. This table will be connected to a database. The data we create from here will be published on the website and will stay in the data base.
1681365279433.png
 
What exactly is the problem? Do you already have the data from the database? If not then displaying is not really something to consider just yet. If so, in what form do you have it?
 
So you have a database already. It's just a matter of loading the data into a data table. Since you don't want to use a MVC style of code where you bind the data to the data table (and let the framework put the rows and columns of data into the rows and columns of the data table), you'll have to now iteratively add the rows and columns of data into the data table yourself.
 
Back
Top Bottom