The data are getting in a DataSet or DataTable, but the data are not binding in the DataGrid.
What may be the reason for this issue?
PartyDAL partydal = new PartyDAL(); DataSet dt = partydal.GetParties(); this.ddlgrdParty.DataSource = dt;
Now it's working. I changed the code as follows.
PartyDAL partydal = new PartyDAL(); DataSet dt = partydal.GetParties(); this.ddlgrdParty.DataSource = dt.Tables[0];
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.