Gridview with single selection
Using DevExpress, you may have run into this issue before. With the DevExpress control, you can allow selection – but it’s multi selection. In some code, I wanted a gridview where you can highlight a row and continue… such as selecting a person’s name in a list (like a dropdown, but in a gridview).
First we need our gridview. I’m a bit lazy to code up all of the… Continue reading
Example DataTable
Every now and then I need to create a dummy data table to test out gridviews n stuff… so here’s a quick post on how to create one
1
public static DataTable ExampleDataTable()
{
// Declare the DataTable
DataTable dtExample = new DataTable();
// Here we define the columns, Add() takes in two params, the name and the data type
dtExample.Columns.Add("ID", typeof(int))… Continue reading
