Category - DataGridView
Results 1 - 20 of 86
25 Jun 2020 25 Jun 2020 0 Comments  20801 Views
Here Mudassar Ahmed Khan has explained with an example, how to refresh DataGridView after record delete in Windows (WinForms) Application using C# and VB.Net.

When the Delete Button is clicked, a Confirmation MessageBox will be displayed and if the User clicks Yes button the Row will be deleted (removed) from DataGridView.

Then the DataGridView will be refreshed by again populating fresh data from the Database in Windows (WinForms) Application using C# and VB.Net.
09 Mar 2020 09 Mar 2020 1 Comments  12065 Views
Here Mudassar Ahmed Khan has explained with an example, how to display records with Next Previous Buttons in DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.

Limited set of records per Page will be displayed in DataGridView with the help of Stored Procedure.

When the Next Button is clicked, the next set of records will be fetched from Database and similarly when Previous Button is clicked, the previous set of records will be fetched from Database and displayed in Windows Forms DataGridView using C# and VB.Net.
23 Aug 2019 23 Aug 2019 0 Comments  50383 Views
Here Mudassar Ahmed Khan has explained with an example, how to delete (remove) Rows from DataGridView and Database in Windows (WinForms) Application using C# and VB.Net.

When the Delete Button is clicked, a Confirmation MessageBox will be displayed and if the User clicks Yes button the Row will be deleted (removed) from DataGridView and Database in Windows (WinForms) Application using C# and VB.Net.
02 Aug 2019 02 Aug 2019 0 Comments  14773 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) selected DataGridView Row from one Form to another in Windows Forms (WinForms) Application using C# and VB.Net.

When the DataGridView Row is clicked, the selected Row values of the DataGridView are passed (sent) to the other Form in Windows Forms (WinForms) Application using C# and VB.Net.
02 Aug 2019 02 Aug 2019 0 Comments  19616 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) DataGridView values to another DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.

When the Button is clicked, a loop will be executed over the rows of DataGridView and the checked (selected) rows will be passed (sent) to another DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.
31 Jul 2019 31 Jul 2019 0 Comments  17617 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) values from one Form to another in Windows Application (WinForms) using C# and VB.Net.

When the DataGridView Row is clicked, the Row Index of the selected DataGridView Row is determined and the values of the Cells are extracted and passed (sent) to the other Form in Windows Forms (WinForms) Application using C# and VB.Net.
16 Jul 2019 16 Jul 2019 0 Comments  21768 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Entity Framework Database First Approach in Windows Forms (WinForms) Application using C# and VB.Net.

This article will illustrate how to use Entity Framework Database First Approach to populate DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.
07 Jun 2019 07 Jun 2019 0 Comments  35078 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement DataGridViewComboBoxColumn inside DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.

The DataGridViewComboBoxColumn class will be used to add ComboBox in DataGridView and the items will be added to the ComboBox from Database in Windows Forms (WinForms) Application using C# and VB.Net.
07 Jun 2019 07 Jun 2019 0 Comments  32260 Views
Here Mudassar Ahmed Khan has explained with an example, how to set cell value of ComboBox in DataGridView programmatically from Database in Windows Forms (WinForms) Application using C# and VB.Net.

ComboBox will be added using the DataGridViewComboBoxColumn class and the items will be added to the ComboBox from Database.

Once the ComboBox is populated, the selected item will be set in ComboBox in Windows Forms (WinForms) Application using C# and VB.Net.
07 Jun 2019 07 Jun 2019 0 Comments  38720 Views
Here Mudassar Ahmed Khan has explained with an example, how to set selected value of ComboBox in DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.

ComboBox will be added using the DataGridViewComboBoxColumn class and the items will be added to the ComboBox from Database.

Once the ComboBox is populated, the item is set as selected in Windows Forms (WinForms) Application using C# and VB.Net.
07 Jun 2019 07 Jun 2019 0 Comments  17022 Views
Here Mudassar Ahmed Khan has explained with an example, how to set selected value of DataGridViewComboBoxColumn in DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.

ComboBox will be added using the DataGridViewComboBoxColumn class and the items will be added to the ComboBox from Database.

Once the DataGridViewComboBoxColumn is populated, the item is set as selected in Windows Forms (WinForms) Application using C# and VB.Net.
07 Jun 2019 07 Jun 2019 0 Comments  13096 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Default value for DataGridViewComboBoxColumn in DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.

ComboBox will be added using the DataGridViewComboBoxColumn class and the items will be added to the ComboBox from Database.

Once the ComboBox is populated, the Default item is added to the DataGridViewComboBoxColumn in Windows Forms (WinForms) Application using C# and VB.Net.
07 Jun 2019 07 Jun 2019 0 Comments  12782 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Default value for ComboBox in DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.

ComboBox will be added using the DataGridViewComboBoxColumn class and the items will be added to the ComboBox from Database.

Once the ComboBox is populated, the Default item is added to the ComboBox in Windows Forms (WinForms) Application using C# and VB.Net.
06 Jun 2019 06 Jun 2019 0 Comments  26160 Views
Here Mudassar Ahmed Khan has explained with an example, how to add ComboBox to DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.

ComboBox will be added using the DataGridViewComboBoxColumn class and the items will be added to the ComboBox from Database in Windows Forms (WinForms) Application using C# and VB.Net.
10 May 2019 10 May 2019 1 Comments  12891 Views
Here Mudassar Ahmed Khan has explained with an example, how to export DataGridView to Word Document in Windows Forms (WinForms) Application using C# and VB.Net.

First a DataGridView will be populated with some data using DataTable and then an HTML Table will be generated using the values from the DataGridView and will be saved to a Folder (Directory).

Finally, the HTML File will be converted into a Word Document using Microsoft Office Interop Library and saved to a Folder (Directory) in Windows Forms (WinForms) Application using C# and VB.Net.
09 May 2019 09 May 2019 0 Comments  38855 Views
Here Mudassar Ahmed Khan has explained with an example, how to create HTML File programmatically using C# and VB.Net.

First a Windows Form DataGridView will be populated with some data using DataTable and then an HTML Table will be generated using the values from the DataGridView.

Finally, the HTML Table in HTML string format will be saved to a Folder (Directory) as HTML File in Windows Forms (WinForms) Application using C# and VB.Net.
26 Apr 2019 26 Apr 2019 0 Comments  11098 Views
Here Mudassar Ahmed Khan has explained with an example, how to export DataGridView to HTML in Windows Forms (WinForms) Application using C# and VB.Net.

First a DataGridView will be populated with some data using DataTable and then an HTML Table will be generated using the values from the DataGridView.

Finally, the HTML Table string will be saved to a Folder (Directory) in Windows Forms (WinForms) Application using C# and VB.Net.
05 Apr 2019 05 Apr 2019 0 Comments  15570 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) values from DataGridView to TextBoxes in Windows Application (WinForms) using C# and VB.Net.

When the DataGridView Row is clicked, the Row Index of the selected DataGridView Row is determined and the values of the Cells are extracted and passed (sent) to TextBoxes in Windows Forms (WinForms) Application using C# and VB.Net.
05 Apr 2019 05 Apr 2019 2 Comments  102504 Views
Here Mudassar Ahmed Khan has explained with an example, how to get Cell Value of selected DataGridView Row in Windows Application (WinForms) using C# and VB.Net.

When the DataGridView Row is clicked, the Row Index of the selected DataGridView Row is determined and the values of the Cells are extracted and displayed in TextBoxes in Windows Forms (WinForms) Application using C# and VB.Net.
05 Apr 2019 05 Apr 2019 0 Comments  30640 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Cell Mouse Click event in DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.

Inside the CellMouseClick event handler, the Row Index of the clicked DataGridView Row is determined and the values of the Cells are extracted and displayed in TextBoxes in Windows Forms (WinForms) Application using C# and VB.Net.
Results 1 - 20 of 86