I need to add a DataGridView to an ActiveReports 3 file. When I add the control its not recognized as a DataGridView but rather a custom control. Can anyone help me get around this?
相关问题
- 'System.Threading.ThreadAbortException' in
- how to use special characters like '<'
- How do I bind a DataGridViewComboBoxColumn to a pr
- C# to VB - How do I convert this anonymous method
- Scaling image for printing
相关文章
- vb.net 关于xps文件操作问题
- C# Winform 生成的两个DatagridViewTreeViewSelectColumn列该
- Checking for DBNull throws a StrongTypingException
- Using the typical get set properties in C#… with p
- Load a .NET assembly from the application's re
- C# equivalent of VB DLL function declaration (Inte
- What other neat tricks does the SpecialNameAttribu
- Automatically install updates with ClickOnce deplo
You can cast CustomControl.Control to DataGridView to access the object programmatically from the format event of the control containing the section. There is an example of doing this in the CustomControl.Control property's documentation topic. Note that in that topic, it uses ChartFX, but you'll be using DataGridView.
However, @LordHits comment about using DataGridView in a report is a good one. Normally, you'd just want to connect the report to the same data source and use the same query and let the report get the data. You can also bind the report to a System.Data.DataSet easily as well. See the help topic "How-To Section > Binding Reports to a Data Source > Using a Dataset" in the ActiveReports 3 User Guide.