•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 391,593 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,683 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
Views: 6066 | Replies: 4
![]() |
•
•
Join Date: Oct 2005
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
In my opinion there are 2 ways of doing it:
1. Make your datasource such that it resembels what is required in the datagrid. Say, For example, you make a array of array and the base array would have table rows in it. So it would be like Array A has two arrays and each of the array has data from the Table row.
and then you simply do a custom binding of your datagrid by calling the event handler of databinding.
2. Other method is more adhoc, where you generate table dynamically. so you declare asp:Table as runat server and then in code behind you add rows and columns in it.
Hope that helps
1. Make your datasource such that it resembels what is required in the datagrid. Say, For example, you make a array of array and the base array would have table rows in it. So it would be like Array A has two arrays and each of the array has data from the Table row.
and then you simply do a custom binding of your datagrid by calling the event handler of databinding.
2. Other method is more adhoc, where you generate table dynamically. so you declare asp:Table as runat server and then in code behind you add rows and columns in it.
Hope that helps
•
•
Join Date: Jan 2008
Location: http://www.GlobalGuideLine.com
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Hi all here any one knows how to assign color for each rows cell value on the bases of some logics.
Regards.
Ali.
Regards.
Ali.
webmaster http://www.GlobalGuideLine.com
•
•
Join Date: Jul 2007
Location: Philippines
Posts: 160
Reputation:
Rep Power: 0
Solved Threads: 16
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
Similar Threads
- Need help on export asp.net table to excel (ASP.NET)
- Datagrid - no value at index ### error when scroll and sort (VB.NET)
- Vertical Scroll for DataGrid control (ASP.NET)
- Datagrid to draw a table (C#)
- DataGrid with Images (ASP.NET)
- refresh datagrid causes error if oper scrolled off right side of grid (VB.NET)
Other Threads in the C# Forum
- Previous Thread: Toolbox help ???
- Next Thread: making colorfull datagrid in C# ASP.NET.


Linear Mode