question

WanyamaEdwin-1498 avatar image
0 Votes"
WanyamaEdwin-1498 asked DanielZhang-MSFT commented

THE DASHBOARD FORM CAN NOT DISPLAY

121917-error1.png


what could be the problem with that form

dotnet-csharp
error1.png (54.8 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


It seems that Dashboard uses Fill incorrectly. Show some details about the Dashboars.cs code.


0 Votes 0 ·

Hi @WanyamaEdwin-1498,
May I know whether your issue has been solved or not? If not, please share it in here. We can work together to figure it out.
Best Regards,
Daniel Zhang

0 Votes 0 ·

1 Answer

DanielZhang-MSFT avatar image
0 Votes"
DanielZhang-MSFT answered

Hi @ WanyamaEdwin-1498,
>>The SelectCommand property has not been initialized before calling 'Fill'.
Based on your error, have you specified the select command of SqlDataAdapter?

 SqlCommand cmd = new SqlCommand();
 SqlDataAdapter adp = new SqlDataAdapter();
 adp.SelectCommand=cmd;

Or

 SqlCommand cmd = new SqlCommand();
 SqlDataAdapter adp = new SqlDataAdapter(cmd);

If it is not the cause of the problem, please provide detailed code.
Best Regards,
Daniel Zhang


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.