Results 1 - 5 of 127
18 Jul 2018 18 Jul 2018 0 Comments  533 Views
Here Mudassar Ahmed Khan has explained with an example, how to search (filter) DataGridView as you type in Windows Forms (WinForms) Application using C# and VB.Net.

By default, the DataGridView will show all records. As soon as user starts to type in the TextBox, the records will be searched in Database and the DataGridView rows will be filtered in Windows Forms (WinForms) Application using C# and VB.Net.
12 Jun 2018 12 Jun 2018 0 Comments  935 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Date format validation (dd/MM/yyyy) using Regular Expression in C# and VB.Net.

The User will enter Date in TextBox and when the Button is clicked, the Date will be tested against the Regular Expression for dd/MM/yyyy format and if invalid, a Message Box will be displayed.
12 Jun 2018 12 Jun 2018 0 Comments  642 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Email Validation using Regular Expression in C# and VB.Net.

The User will enter Email Address in TextBox and when the Button is clicked, the Email Address will be tested against the Regular Expression and if invalid, a Message Box will be displayed.
29 Dec 2017 29 Dec 2017 0 Comments  4710 Views
Here Mudassar Ahmed Khan has explained with an example, how to export DataGridView to Excel file with Column Headers (Column Names) in C# and VB.Net.

First a DataTable will be generated along with Column Headers (Column Names) and then the DataGridView data will be copied to the DataTable.

Finally the DataTable will be exported to Excel file using the ClosedXml library in C# and VB.Net.
29 Dec 2017 29 Dec 2017 0 Comments  4126 Views
Here Mudassar Ahmed Khan has explained with an example, how to export DataGridView to Excel file without using Microsoft Office or Interop Library in C# and VB.Net.

This article will illustrate how to make use of the free and open source ClosedXml library which is wrapper of OpenXml library for exporting DataGridView to Excel in C# and VB.Net.
Results 1 - 5 of 127