Show class into datagrid in hierarchical in c#.net
|
C#Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Show class into datagrid in hierarchical in c#.net
I have a class RTCA, which consists of other class RTC and a list of datetime DA. Now I have to present this RTCA class object into datagrid in hierarchical form..
Class RTCA
{
RTC objRTC;
private List<DateTime> DA;
}
data is present in the objRTA and list
I need to first show the objRTA and in level 2 the list
----Is there any better way than datagrid...plz help
Urgent
You may store the elements of the class into two tables,both of which are in the same database.
Then you may set the relationship of these two tables:one to many.
Connect to database,and bind tables to datagrid.