.NET WinForms DataGrid Related...

Make the DataGrid support single select mode.
Make the DataGrid support single select mode vs. the default multi-select mode.

Get the DataSet row after a bound DataGrid was sorted.
Get the corresponding DataSet row after the bound DataGrid was sorted and rows added.

Programmatically scroll a DataGrid to a given row.
Programmatically scroll the WinForms DataGrid to a particular row.

Confirm DataGrid deletes when the DEL key is hit.
Display a Delete Confirmation dialog when the DEL key is pressed.

Stop Deletes when the DEL key is hit in a DataGrid.
Stop Deletes from occurring when the DEL key is pressed in a DataGrid.

Disable TAB, Arrow, Home, End, and Page keys in a .NET DataGrid.
Disable the TAB, Arrow, Home, End, and Page keys in the .NET DataGrid.

Prevent column resizing in a .NET DataGrid.
Prevent columns from being resized in the .NET DataGrid.

Programmatically move columns in the .NET DataGrid.
Programmatically move columns in the .NET DataGrid.

Format columns in .NET Winforms DataGrid.
Format columns in a .NET Winforms DataGrid.

Hide columns in .NET Winforms DataGrids.
Hide a column in a .NET Winforms DataGrid.

Winforms DataGrid with no current cell.
Make the Winforms DataGrid have no current cell.

Get the clicked row or column in a DataGrid.
Get the row or column that was clicked on in the DataGrid.

Programmatically end DataGrid cell editing.
Programmatically end the editing of a cell in the DataGrid.

Add databound ComboBoxes to DataGrids.
Add databound ComboBoxes to the DataGrid in C# or VB.NET.

Limit keyboard input to DataGrid cells.
Use events to limit keyboard input to DataGrid cells.

Make DataGrid row read only based on a cell's value.
Make a DataGrid row read only when it is clicked based on a cell's value.

Sum DataGrid columns to produce totals.
Sum up a column in the DataGrid to produce a total.

Filter datagrid rows as the user types.
Filter datagrid rows as the user types the first few letters of a column's value.




About TheScarms
About TheScarms


Sample code
version info

If you use this code, please mention "www.TheScarms.com"

Email this page


© Copyright 2024 TheScarms
Goto top of page