Results 1 - 5 of 30
22 Jun 2018 22 Jun 2018 0 Comments  519 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (bind) WebGrid using ADO.Net in ASP.Net MVC Razor.

Inside the Controller, the records from the Database Table will be fetched using traditional ADO.Net method i.e. using SqlConnection, SqlCommand, SqlDataAdapter, etc.

The fetched records will be populated into a DataSet which will be ultimately used to populate the WebGrid in ASP.Net MVC Razor.
22 Jun 2018 22 Jun 2018 0 Comments  457 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind (populate) WebGrid using dynamic DataTable (DataSet) in ASP.Net MVC Razor.

Inside the Controller, first a DataTable object is created with some dynamic Columns and then records are added to the DataTable.

Finally the DataTable is added to a DataSet which is later used to populate the WebGrid in ASP.Net MVC Razor.
30 May 2018 30 May 2018 0 Comments  918 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate Bar and Column Charts from database using ASP.Net Chart control in C# and VB.Net.
30 May 2018 30 May 2018 0 Comments  869 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind DataTable (DataSet) to Chart control in ASP.Net using C# and VB.Net.
21 Feb 2018 21 Feb 2018 0 Comments  2346 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind DataTable (DataSet) to WebGrid in ASP.Net MVC Razor.

By default, WebGrid does not accept DataSet (DataTable) as source of data and hence the DataSet (DataTable) needs to be converted to Dynamic Anonymous Type collection using LINQ and then used for populating WebGrid in ASP.Net MVC Razor.
Results 1 - 5 of 30