ASPSnippets.com
Category - DataGridView
Results 1 - 5 of 50
04 Jun 2018 04 Jun 2018 0 Comments  353 Views
Here Mudassar Ahmed Khan has explained with an example, how to read, parse and import XML file in Windows Forms DataGridView using C# and VB.Net.

The XML file will be read and parsed using a DataSet and all the records from the XML file will be imported into a DataTable within the DataSet.

Finally the DataSet will be used to populate and display the data from XML file in Windows Forms DataGridView.
01 Jun 2018 01 Jun 2018 0 Comments  506 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (import) Excel file without using OLEDB or installing Microsoft Office Excel or Interop Library in C# and VB.Net.

The Excel file will be read using ClosedXml and OpenXml DLLs which does not require OLEDB and does not require Microsoft Office Excel or Interop Library software to be installed.
01 Jun 2018 01 Jun 2018 0 Comments  497 Views
Here Mudassar Ahmed Khan has explained with an example, how to export DataGridView data to Excel file with formatting i.e. Colors and Styles in Windows Forms (WinForms) Applications using C# and VB.Net.

DataGridView cannot be exported directly to Excel file and hence need to generate a DataTable and export the DataTable to Excel file.

The DataTable will be exported to a formatted Excel file using ClosedXml library which is a wrapper of OpenXml.
31 May 2018 31 May 2018 0 Comments  422 Views
Here Mudassar Ahmed Khan has explained with an example, how to read and import Excel file data to DataGridView using ClosedXml using C# and VB.Net in Windows Forms (Winforms) Application.
04 Apr 2018 04 Apr 2018 0 Comments  837 Views
Here Mudassar Ahmed Khan has explained with an example, how to Filter DataGridView using Multiple CheckBoxes in Windows Forms Application using C# and VB.Net.

By default the DataGridView will show all records. As soon as user selects a CheckBox, the records will be searched in Database and the DataGridView rows will be filtered in Windows Forms (WinForms) Application using C# and VB.Net.
Results 1 - 5 of 50