Category - GridView
Results 41 - 60 of 518
11 Jun 2019 11 Jun 2019 0 Comments  32965 Views
Here Mudassar Ahmed Khan has explained with an example, how to handle TextChanged event for TextBox inside GridView in ASP.Net using C# and VB.Net.

The TextBox inside GridView will be assigned an OnTextChanged event and when Text inside the TextBox changes, the TextChanged event handler is raised.
20 May 2019 20 May 2019 0 Comments  29903 Views
Here Mudassar Ahmed Khan has explained with an example, how to enable and disable Button in GridView based on condition in ASP.Net using C# and VB.Net.

The Enabled 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 enable or disable the Button respectively.
17 May 2019 17 May 2019 0 Comments  34747 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  18849 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 1 Comments  50702 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  23341 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  20033 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.
10 Apr 2019 10 Apr 2019 2 Comments  37930 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert JSON string to DataTable in ASP.Net 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.
10 Apr 2019 05 May 2021 0 Comments  49419 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (parse) JSON data from URL in ASP.Net 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.
10 Apr 2019 05 May 2021 0 Comments  17684 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind (populate) GridView using JSON string in ASP.Net 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.
26 Mar 2019 26 Mar 2019 1 Comments  17543 Views
Here Mudassar Ahmed Khan has explained with an example, how to add RowSpan to GridView in ASP.Net using C# and VB.Net.

This article will illustrate how to dynamically merge common Cells of GridView using RowSpan property in ASP.Net using C# and VB.Net.
14 Mar 2019 14 Mar 2019 0 Comments  27761 Views
Here Mudassar Ahmed Khan has explained with an example, how to add Colspan (ColumnSpan) to GridView in ASP.Net using C# and VB.Net.

This article will illustrate how to dynamically add row and add Columns with Colspan (ColumnSpan) to GridView in ASP.Net using C# and VB.Net.
13 Feb 2019 13 Feb 2019 0 Comments  14261 Views
Here Mudassar Ahmed Khan has explained with an example, how to get RowIndex when CheckBox in GridView Row is Checked (Clicked) using JavaScript.

All the CheckBox inside the GridView will be assigned a Click event handler using JavaScript.

When the CheckBox inside the GridView Row is Checked (Clicked), the GridView Row will be referenced and then the RowIndex and the Row (Cell) values will be extracted and displayed using JavaScript Alert Message Box.
12 Feb 2019 19 Apr 2021 0 Comments  9819 Views
Here Mudassar Ahmed Khan has explained with an example, how to export GridView data to Word document in ASP.Net using C# and VB.Net.

This article will illustrate how to export all Pages of GridView with Paging Enabled to Word document along with formatting i.e. Styles and Colors in ASP.Net.

When the Export Button is clicked, the GridView will be rendered as an HTML string which will be later written to Response Stream and ultimately downloaded as Word document in ASP.Net.
08 Feb 2019 18 Feb 2019 0 Comments  13061 Views
Here Mudassar Ahmed Khan has explained with an example, how to export GridView to PDF without using iTextSharp in ASP.Net.

This article will illustrate how to export GridView to PDF using jQuery in ASP.Net.

The GridView’s HTML Table will be first converted into a HTML5 Canvas using html2canvas plugin and then the HTML5 Canvas will be exported to PDF file using the pdfmake plugin in jQuery.
08 Feb 2019 28 Jun 2020 0 Comments  22781 Views
Here Mudassar Ahmed Khan has explained with an example, how to export (convert) GridView to Excel file using JavaScript and jQuery in ASP.Net.

The GridView’s HTML Table will be exported (converted) to Excel file using the jQuery table2excel plugin in ASP.Net.
08 Feb 2019 28 Jun 2020 0 Comments  11036 Views
Here Mudassar Khan has explained with an example, how to export (convert) GridView to PDF file using JavaScript and jQuery in ASP.Net.

The GridView’s HTML Table will be first converted into a HTML5 Canvas using html2canvas plugin and then the HTML5 Canvas will be exported to PDF file using the pdfmake plugin in jQuery.
01 Feb 2019 01 Feb 2019 3 Comments  56043 Views
Here Mudassar Ahmed Khan has explained with an example, how to upload and download PDF file from SQL Server Database in ASP.Net using C# and VB.Net.

The PDF file will be uploaded using FileUpload control and will be inserted into SQL Server Database Table.

A GridView control will display the PDF file present in the SQL Server Database Table along with an option to download the selected PDF file from Database in ASP.Net.
30 Jan 2019 30 Jan 2019 2 Comments  87678 Views
Here Mudassar Ahmed Khan has explained with an example, how to upload and download files from Folder (Directory) in ASP.Net using C# and VB.Net.

The uploaded Files will be read from Folder (Directory) on Server’s Disk and will be displayed in GridView control.

The uploaded Files can be downloaded and deleted from Folder (Directory) using the Download and Delete buttons in the ASP.Net GridView.
16 Jan 2019 16 Jan 2019 0 Comments  16067 Views
Here Mudassar Ahmed Khan has provided solution to the problem where value of the TextBox placed in GridView is lost after PostBack in ASP.Net with C# and VB.Net.

When PostBack happens i.e. when Button is clicked or any other control that does PostBack inside GridView, the GridView is again populated with data and hence the modified values in TextBox are lost.
Results 41 - 60 of 518