Category - Windows Forms
Results 6 - 10 of 139
05 Apr 2019 05 Apr 2019 0 Comments  478 Views
Here Mudassar Ahmed Khan has explained with an example, how to display DataGridView selected Row in TextBoxes in Windows Forms (WinForms) Application using C# and VB.Net.

The DataGridView will be assigned CellMouseClick event handler.

When the DataGridView Row or Cell is clicked, 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.
29 Mar 2019 29 Mar 2019 0 Comments  491 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert DataGridView to DataTable in Windows Forms (WinForms) Application using C# and VB.Net.

When the Convert Button is clicked, first the Columns from the DataGridView are used to create a DataTable and then using a loop, data from each Row of DataGridView is inserted into the DataTable in Windows Forms (WinForms) Application using C# and VB.Net.
28 Mar 2019 28 Mar 2019 0 Comments  507 Views
Here Mudassar Ahmed Khan has explained with an example, how to send DataGridView to Email in Windows Forms (WinForms) Application using C# and VB.Net.

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

Finally, the HTML Table string will be used to send the DataGridView’s data to Email in Windows Forms (WinForms) Application using C# and VB.Net.
27 Mar 2019 27 Mar 2019 0 Comments  393 Views
Here Mudassar Ahmed Khan has explained with an example, how to change DataGridView Cell Color based on condition in Windows (WinForms) Application using C# and VB.Net.

Inside the CellFormatting event handler of the DataGridView, various conditions are used to compare the Cell value of the DataGridView Row and the Cell color of the DataGridView is changed based on the conditions holding true.
27 Mar 2019 27 Mar 2019 0 Comments  310 Views
Here Mudassar Ahmed Khan has explained with an example, how to change DataGridView Row Color based on condition in Windows (WinForms) Application using C# and VB.Net.

Inside the CellFormatting event handler of the DataGridView, various conditions are used to compare the Cell value of the DataGridView Row and the Row color of the DataGridView is changed based on the conditions holding true.
Results 6 - 10 of 139