Skip to content

How to avoid thus CS0266: Cannot implicitly convert type 'Sy

Venkat Govind

Venkat Govind

Asked Nov 18, 2015, 7:40 PM EST1 answer
Share
LinkedInX
Hi creating crystal report in c# asp.net using Dataset and created datatable (column what are column i need to display ) i developed three tier architecture,
when i post value to datatable i got the below error ,
CS0266: Cannot implicitly convert type 'System.Data.DataSet' to 'DataSet1'. An explicit conversion exists (are you missing a cast?) 
 
code :
 
dsReport = BindData("ViewId", WorforceId);
 
Stored procedure :"ViewId
WorforceID to send where condition;
 
thanks and regrads
Venkat

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Venkat Govind
    0
    C#
     private DataSet BindData(string QueryType, string Input1)
        {
            DataSet ds = new DataSet();
            objBO.QueryType = QueryType.ToString().Trim();
            objBO.Input1 = Input1.ToString().Trim();
            objBO.TranscationFlag = "N";
            ds = objBAL.ViewSecurity(objBO);
            return ds;
        }
     the The bindata goes to here , 
    0