
I want .net code the aboce grid format

I want .net code the aboce grid format
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Feb 6, 2025, 7:16 PM
Part - 2
The grid will display student marks in a format similar to your image
Tuhin PaulPosted Feb 6, 2025, 7:09 PM
Part - 1
This implementation includes:
1. A `StudentMarks` class that defines the data model
2. An ASPX page with a GridView control and CSS styling
3. A code-behind file that populates the grid with data
The grid will display student marks with proper formatting and column headers matching your image. You can further customize the appearance by modifying the CSS classes and GridView properties.
Sreenath KappoorPosted Feb 6, 2025, 6:51 AM
Hello,
Try using rowspan and colspan. they are attributes used in HTML tables to define how many rows or columns a cell should span (occupy) within the table.
rowspan: This attribute allows a table cell to span multiple rows. It is used to make a cell stretch vertically across several rows. For example, if you want a cell to span two rows, you would set rowspan="2".
colspan: This attribute allows a table cell to span multiple columns. It is used to make a cell stretch horizontally across several columns. For example, if you want a cell to span three columns, you would set colspan="3".