English 中文(简体)
支持浏览细节的数据控制
原标题:DataGrid control that supports row details

我正在寻找一个免费/有偿部分。 NETWindows 表格,可视化(表格),单列含有各类数据。 我也想出一种办法,使其中的任何建筑都符合规格。 NET部件也做同样的事情。

我有一个数据集,由4种不同类型的数据组成,所有数据都采用共同接口。 我可以把数据GridView的数据来源确定为接口物体清单,我只得到一只冰箱,看着统一的电网。 然而,我想要做的是能够扩大每一行,以了解基本类别的实际数据类型价值。

以下是一套数据:

public interface ICommonData {
    long ID {get;}
    DateTime Date {get;}
}

public class ClassA : ICommonData {
    public long ID {get;}
    public DateTime Date {get;}
    public string Description {get;set;}
    public string Title {get;set;}
}

public class ClassB : ICommonData {
    public long ID {get;}
    public DateTime Date {get;}
    public long SomeReferenceNumber {get;set;}
    public string SomeName {get;set;}
}

利用这一数据,我将把电网连接到包含甲类和乙类物体混合物的清单中。 我需要的是,能够根据受该行约束的数据类型,扩大任何一行,并记录A级或B级的所有领域。

我知道,我需要的是使用微软WPF数据Grid物体(有罗·DetailSelector),但是如果我不必要的话,我就不使用WPF。 另一项重要内容是,这只是读到的。 我不需要用任何方式来收集任何此类数据。 我的使用情况是,我有多个不同类型的错误记录所旁观的图书馆,我需要一种方式,以一个表格式对所有这些不同类型的错误记录进行视觉化(尽管能够看到所有领域的所有不同类型的数据)。

感谢任何帮助!

最佳回答

我最后选择了来自Telerik的WinForms控制。 他们的网格使我能够利用刺.儿童模板做上文描述的内容。

问题回答

暂无回答




相关问题
Bring window to foreground after Mutex fails

I was wondering if someone can tell me what would be the best way to bring my application to the foreground if a mutex was not able to be created for a new instance. E.g.: Application X is running ...

How to start WinForm app minimized to tray?

I ve successfully created an app that minimizes to the tray using a NotifyIcon. When the form is manually closed it is successfully hidden from the desktop, taskbar, and alt-tab. The problem occurs ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

Handle DataTable.DataRow cell change event

I have a DataTable that has several DataColumns and DataRow. Now i would like to handle an event when cell of this DataRow is changed. How to do this in c#?

Apparent Memory Leak in DataGridView

How do you force a DataGridView to release its reference to a bound DataSet? We have a rather large dataset being displayed in a DataGridView and noticed that resources were not being freed after the ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

WPF-XAML window in Winforms Application

I have a Winforms application coded in VS C# 2008 and want to insert a WPF window into the window pane of Winforms application. Could you explain me how this is done.

热门标签