Cannot Assign From Type System Object To Type System Data Datatable
Cannot Assign From Type System Object To Type System Data Datatable I am getting error cannot assign from type ‘system.object’ to type ‘system.data.datatable’ in assign activity i am using linq query to filter table and there is no error in the query. Had a look at casting a base type to a derived type, but could not see how to make that work. i cannot populate the datatable with a datareader, can only use the client's dataaccess method.
Cannot Assign From Type System Object To Type System Data Datatable The following example creates two datatable objects and one datarelation object, and adds the new objects to a dataset. the tables are then displayed in a datagridview control. Error: system.invalidcastexception: unable to cast object of type 'system.object' to type 'system.data.datatable'. i've done this same process in tons of dev projects in the past. Hello, i have an amortization table of personal loan example: to implement this, i wrote the following code using datatable. create datatable and add column amortable = new datatable (); …. In your page load, you never assign the returned values to anything: categorybl.getcategorybyid(categoryid); the method will run, and there may be results from it, but that does you no good if you don't assign the results to something.
Cannot Assign From Type System Object To Type System Data Datatable Hello, i have an amortization table of personal loan example: to implement this, i wrote the following code using datatable. create datatable and add column amortable = new datatable (); …. In your page load, you never assign the returned values to anything: categorybl.getcategorybyid(categoryid); the method will run, and there may be results from it, but that does you no good if you don't assign the results to something.
Comments are closed.