该方法或操作未实现。

编程入门 行业动态 更新时间:2024-10-26 13:18:47
本文介绍了该方法或操作未实现。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using BhavansFMS.Cancel_ReportTableAdapters; namespace BhavansFMS { public partial class Cancel_Admission_Report : Form { public Cancel_Admission_Report() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Cancel_Admission_Report car = new Cancel_Admission_Report(); Cancel_Report ds = new Cancel_Report(); CANCEL_STUDENT_RECORDSTableAdapter ctr = new CANCEL_STUDENT_RECORDSTableAdapter(); ctr.Fill(ds.CANCEL_STUDENT_RECORDS); car.SetDataSource(ds); crystalReportViewer1.ReportSource = car; } private void SetDataSource(Cancel_Report ds) { throw new NotImplementedException();(The method or operation is not implemented.) } } }

推荐答案

在button1_click事件中,当你调用setdatasource方法时,该方法会抛出一个notimplementedexception,这就是为什么你得到那个异常 In button1_click event when you call setdatasource method the method throws a notimplementedexception thats why ur getting that exception

尝试在方法中的SetDataSource()中添加代码而不是抛出新的 trying adding code in SetDataSource() in the method instead of throw new

更多推荐

该方法或操作未实现。

本文发布于:2023-11-14 19:07:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1588282.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:操作   方法

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!