would you please help me with this?
here is the code:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: An invalid data source is being used for DataGrid. A valid data source must implement either IListSource or IEnumerable.
Source Error:
Expand|Select|Wrap|Line Numbers
- Line 142: JHCSCPAGADIANSTUDENT.Close()
- Line 143:
- Line 144: DataGrid.DataSource = DataGrid
- Line 145: FillMessageTable()
- Line 146:
Stack Trace:
[ArgumentException: An invalid data source is being used for DataGrid. A valid data source must implement either IListSource or IEnumerable.]
System.Web.UI.WebControls.BaseDataList.set_DataSou rce(Object value) +8684978
StudProfile._Default.btnsave_Click(Object sender, EventArgs e) in C:\Users\Sweetheart cuh\Documents\samplee\StudProfile\StudProfile\Defa ult.aspx.vb:144
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565