简体   繁体   中英

dynamically generate columns for grid ASP.net mvc

I am currently using asp.net mvc to create an application. Part of that application needs to be a page that uses a grid to display data. The grid will have columns that are classrooms, such as classroom 1, classroom 2. This data is generated from a table so it can be variable. Then each cell will consist of data about students that will be in that classroom. There can be 1 to many students in each classroom.

I am open to any suggestions on what technology to use. If you would recommend using Grid.mvc or jquery mobile tables. I am simply struggling with finding a good ui example on how to generate columns dynamically within a table. I also don't have any code to post yet as I am not sure what direction to go.

Please try using the JQGrid. Its fantastic grid control. Full documentation and working example can be found in this link.

http://www.trirand.com/blog/jqgrid/demo38/jqgrid.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM