Results 11 - 15 of 484
17 May 2019 17 May 2019 0 Comments  2126 Views
Here Mudassar Ahmed Khan has explained with an example, how to show and hide Button in GridView based on condition in ASP.Net using C# and VB.Net.

The Visible property of the Button is set with an Inline Expression which compares the value of the column and based on the value, True or False value is returned which is used to show or hide the Button respectively.
16 May 2019 16 May 2019 0 Comments  2577 Views
Here Mudassar Ahmed Khan has explained with an example, how to remove HyperLink when exporting GridView to Excel in ASP.Net using C# and VB.Net.

When the GridView TemplateField columns contain controls like HyperLink, TextBox, Button, LinkButton, RadioButton or CheckBox controls then such controls need to be replaced with Literal control and then the GridView is exported to Excel file in ASP.Net using C# and VB.Net.
16 Apr 2019 16 Apr 2019 0 Comments  5003 Views
Here Mudassar Ahmed Khan has explained with an example, how to get Total Rows Count for GridView with Paging in ASP.Net using C# and VB.Net.

The GridView.Rows.Count property gets the current Page Row Count and hence in order to get the Total Rows Count for GridView with Paging enabled, the Total Rows Count is determined from the DataSource inside the OnDataBound event handler in ASP.Net using C# and VB.Net.
16 Apr 2019 16 Apr 2019 0 Comments  1801 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Count of Total number of records in ASP.Net GridView using C# and VB.Net.

A Label will be placed below the GridView control and inside the OnDataBound event handler, the Count of Total number of records in ASP.Net GridView will be determined and displayed using C# and VB.Net.
10 Apr 2019 10 Apr 2019 0 Comments  2794 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (parse) JSON data from URL and display in ASP.Net GridView using C# and VB.Net.

The JSON string will be first downloaded from an API using WebClient class and then will be converted to DataTable using JSON.Net library.

Finally, the DataTable will be used to populate the GridView control in ASP.Net using C# and VB.Net.
Results 11 - 15 of 484