Data Grid

GridControl

Turn any list into a table users can search, sort, filter and group.

Overview

GridControl is a Blazor data grid that lets users search, sort, filter and group tabular data and edit it in place. Use it for any list someone has to work through, from a page of orders to 100,000 rows: give it a height and only the rows in view, plus a small band around them, are rendered. Bind a list to DataSource, declare columns, and switch features on with parameters such as AllowSorting, AllowGrouping and ShowSearchBar.

Examples

#4,009 airports: search, sort, filter and group

Search 4,009 airports from OurAirports (try Lisbon), sort by a header, open a filter icon, or drag the Continent chip off the group bar; group captions carry counts and averages.

Continent ×
ContinentCode Airport Country Type Elevation (ft) Longest runway (ft) Runways City Wikipedia
−Africa378 airportsavg elevation 1,729 ftlongest runway 16,076 ft
AAEAnnaba Rabah Bitat AirportAlgeriaLarge169,8432AnnabaArticle
ABBAsaba International AirportNigeriaLarge30511,1551AsabaArticle
ABJFélix-Houphouët-Boigny International AirportCôte d'IvoireLarge219,8431AbidjanArticle
ABKKebri Dahar AirportEthiopiaMedium1,8008,2021Kebri DaharArticle
ABSAbu Simbel AirportEgyptMedium6149,8431Abu SimbelArticle
ABVNnamdi Azikiwe International AirportNigeriaLarge1,12311,8421AbujaArticle
ACCKotoka International AirportGhanaLarge20511,1651AccraArticle
ACECésar Manrique-Lanzarote AirportSpainLarge467,8741San BartoloméArticle
ADDAddis Ababa Bole International AirportEthiopiaLarge7,63012,4672Addis AbabaArticle
AGAAl Massira AirportMoroccoLarge25010,4991Agadir (Temsia)Article
AHUCherif Al Idrissi AirportMoroccoMedium9510,5111Al HoceimaArticle
AJNOuani AirportComorosMedium624,4291OuaniArticle
AKFKufra AirportLibyaMedium1,36712,0072KufraArticle
AKRAkure AirportNigeriaMedium1,1009,1951AkureArticle
ALGHouari Boumediene AirportAlgeriaLarge8211,4832AlgiersArticle
AMHArba Minch AirportEthiopiaMedium3,9019,1701Arba MinchArticle
APLNampula AirportMozambiqueLarge1,4446,5622NampulaArticle
ARKArusha AirportTanzaniaMedium4,5505,3771ArushaArticle
ASIRAF Ascension IslandSaint Helena, Ascension and Tristan da CunhaMedium27810,0191Cat HillArticle
ASMAsmara International AirportEritreaMedium7,6619,8422AsmaraArticle
ASOAsosa AirportEthiopiaMedium5,1008,2181AsosaArticle
ASVAmboseli AirportKenyaMedium3,7553,2841Ol TukaiArticle
ASWAswan International AirportEgyptLarge65011,1611AswanArticle
ATZAsyut International AirportEgyptLarge7489,9051AsyutArticle
AWAHawassa International AirportEthiopiaLarge5,4509,8431HawassaArticle
AXUAxum AirportEthiopiaMedium6,9597,8741AxumArticle
AZRTouat-Cheikh Sidi Mohamed Belkebir AirportAlgeriaMedium9199,8431AdrarArticle
BBKKasane International AirportBotswanaLarge3,2896,5621KasaneArticle
BBOBerbera AirportSomaliaMedium3013,5821BerberaArticle
BCOJinka AirportEthiopiaMedium4,4758,6121JinkaArticle
BCUSir Abubakar Tafawa Balewa Bauchi State International AirportNigeriaLarge1,96511,1541BauchiArticle
BDTGbadolite AirportDemocratic Republic of the CongoMedium1,50910,4991GbadoliteArticle
BEMBeni Mellal AirportMoroccoLarge1,6948,1691Oulad YaichArticle
BENBenina International AirportLibyaLarge43311,7322BeninaArticle
BEWBeira International AirportMozambiqueLarge337,8741BeiraArticle
BFNBram Fischer International AirportSouth AfricaLarge4,4578,3962BloemfonteinArticle
BGFBangui M'Poko International AirportCentral African RepublicLarge1,2088,5301BanguiArticle
BJASoummam–Abane Ramdane AirportAlgeriaLarge207,8741BéjaïaArticle
BJLBanjul International AirportGambiaLarge9511,8111Banjul (Yundum)Article
BJMBujumbura Melchior Ndadaye International AirportBurundiLarge2,58211,8112BujumburaArticle
BJRBahir Dar AirportEthiopiaMedium5,9789,8421Bahir DarArticle
BKOModibo Keita International AirportMaliLarge1,24710,4981BamakoArticle
BKZBukoba AirportTanzaniaSmall3,7844,5351BukobaArticle
BLJBatna Mostefa Ben Boulaid AirportAlgeriaLarge2,6979,8431BatnaArticle
BLWBeledweyne AirportSomaliaSmall5597,2181BeledweyneArticle
BLZChileka International AirportMalawiLarge2,5557,6282BlantyreArticle
BMWBordj Badji Mokhtar AirportAlgeriaMedium1,3039,8431Bordj Badji MokhtarArticle
BNBBoende AirportDemocratic Republic of the CongoSmall1,168 0BoendeArticle
BNIBenin AirportNigeriaMedium2587,8701BeninArticle
BOYBobo Dioulasso AirportBurkina FasoLarge1,51110,8261Bobo DioulassoArticle
BPYBesalampy AirportMadagascarMedium1254,0461BesalampyArticle
BSABender Qassim International AirportSomaliaLarge37,8742BosasoArticle
BSGBata International AirportEquatorial GuineaLarge1310,8601BataArticle
BSKBiskra - Mohamed Khider AirportAlgeriaLarge2899,4691BiskraArticle
BUQJoshua Mqabuko Nkomo International AirportZimbabweLarge4,3598,4912BulawayoArticle
BUXBunia AirportDemocratic Republic of the CongoMedium4,0458,2021BuniaArticle
BVCAristides Pereira International AirportCape VerdeLarge696,8901RabilArticle
BYKBouaké AirportCôte d'IvoireMedium1,23010,8271BouakéArticle
BZVMaya-Maya International AirportRepublic of the CongoLarge1,04810,8271BrazzavilleArticle
CABCabinda AirportAngolaMedium668,2021CabindaArticle
CAICairo International AirportEgyptLarge32213,1243CairoArticle
CBHBéchar Boudghene Ben Ali Lotfi AirportAlgeriaMedium2,66112,2452BécharArticle
CBQMargaret Ekpo International AirportNigeriaMedium2108,0401CalabarArticle
CBTCatumbela AirportAngolaMedium2312,1391CatumbelaArticle
CCECapital International AirportEgyptMedium76111,9803New CairoArticle
CFKChlef Aboubakr Belkaid International AirportAlgeriaLarge4638,7932ChlefArticle
CKYAhmed Sékou Touré International AirportGuineaLarge7210,8261ConakryArticle
CMNMohammed V International AirportMoroccoLarge65612,2052CasablancaArticle
COOCotonou Cadjehoun International AirportBeninLarge197,9061CotonouArticle
CPTCape Town International AirportSouth AfricaLarge15110,5022Cape TownArticle
CSKCap Skirring AirportSenegalMedium526,5731Cap SkirringArticle
CZLMohamed Boudiaf International AirportAlgeriaLarge2,2659,8432ConstantineArticle
DARJulius Nyerere International AirportTanzaniaLarge1829,8432Dar es SalaamArticle
DBBEl Alamein International AirportEgyptLarge15411,4791El AlameinArticle
DBMDebre Markos AirportEthiopiaSmall8,136 0Debre MarkosArticle
DEMDembidollo AirportEthiopiaSmall5,2006,1681DembidolloArticle
DIEArrachart AirportMadagascarMedium3744,9211AntisirananaArticle
DIRAba Tenna Dejazmach Yilma International AirportEthiopiaLarge3,8278,7911Dire DawaArticle
DJEDjerba Zarzis International AirportTunisiaLarge1910,1711MellitaArticle
DJGTiska Djanet AirportAlgeriaLarge3,1769,8432DjanetArticle
DKAUmaru Musa Yar'adua AirportNigeriaMedium1,66011,3521KatsinaArticle
DLADouala International AirportCameroonLarge339,3501DoualaArticle
DODDodoma AirportTanzaniaMedium3,6736,7001DodomaArticle
DOGDongola AirportSudanMedium7729,8431DongolaArticle
DSEKombolcha AirportEthiopiaSmall6,120 0DessieArticle
DSSBlaise Diagne International AirportSenegalLarge29011,4831DakarArticle
DUEDundo AirportAngolaMedium2,4516,4681ChitatoArticle
DURKing Shaka International AirportSouth AfricaLarge29512,1391DurbanArticle
DWBSoalala AirportMadagascarSmall141 0SoalalaArticle
DZADzaoudzi Pamandzi International AirportMayotteLarge236,3301DzaoudziArticle
EBBEntebbe International AirportUgandaLarge3,78212,0002EntebbeArticle
EBDEl-Obeid AirportSudanMedium1,9279,8431El-ObeidArticle
EBHEl Bayadh AirportAlgeriaSmall4,4939,8431El BayadhArticle
EDLEldoret International AirportKenyaLarge6,94111,4801EldoretArticle
ELFEl Fasher AirportSudanMedium2,3939,7442El FasherArticle
ELGEl Golea AirportAlgeriaMedium1,3069,8432El MeniaArticle
ELSKing Phalo AirportSouth AfricaLarge4356,3622East LondonArticle
ELUGuemar Airport - مطار قمار بالواديAlgeriaMedium2039,8432GuemarArticle
ENUAkanu Ibiam International AirportNigeriaLarge4667,8791EneguArticle
ERHMoulay Ali Cherif AirportMoroccoMedium3,42810,4991ErrachidiaArticle
ERSEros AirportNamibiaMedium5,5757,3812WindhoekArticle
ESUEssaouira-Mogador AirportMoroccoMedium3848,5531EssaouiraArticle
EUNLaayoune Hassan I International AirportWestern Sahara (disputed territory)Large2078,8612El AaiúnArticle
FBMLubumbashi International AirportDemocratic Republic of the CongoLarge4,29510,6231LubumbashiArticle
FDUBandundu AirportDemocratic Republic of the CongoMedium1,0634,5281BandunduArticle
FEZFes Saïss International AirportMoroccoLarge1,90010,4991SaïssArticle
FIHNdjili International AirportDemocratic Republic of the CongoLarge1,02713,1231KinshasaArticle
FKIBangoka International AirportDemocratic Republic of the CongoLarge1,41711,4831KisanganiArticle
FMIKalemie AirportDemocratic Republic of the CongoMedium2,5695,7411KalemieArticle
FNALungi International AirportSierra LeoneLarge8410,4981Freetown (Lungi-Town)Article
FRWPhillip Gaonwe Matante International AirportBotswanaLarge3,2839,8432FrancistownArticle
FTUTôlanaro AirportMadagascarMedium295,2801TôlanaroArticle
FUEFuerteventura AirportSpainLarge8511,2201El MatorralArticle
GAQGao International AirportMaliMedium8708,2021GaoArticle
GAXGamba AirportGabonSmall305,9061GambaArticle
GBESir Seretse Khama International AirportBotswanaLarge3,29913,1231GaboroneArticle
GDEGode AirportEthiopiaMedium8347,5051GodeArticle
GDQGondar AirportEthiopiaMedium6,4499,0721AzezoArticle
GEMPresident Obiang Nguema International AirportEquatorial GuineaMedium2,1659,8431MengomeyénArticle
GGRGarowe AirportSomaliaSmall1,4656,5621GaroweArticle
GHANoumérat - Moufdi Zakaria AirportAlgeriaMedium1,51210,1712El AtteufArticle
GIDGitega AirportBurundiMedium5,7413,2481GitegaArticle
GJLJijel Ferhat Abbas AirportAlgeriaLarge367,8741TahirArticle
GLKGalcaio AirportSomaliaSmall9759,8592GalcaioArticle
GMAGemena AirportDemocratic Republic of the CongoMedium1,3786,5501GemenaArticle
GMBGambela AirportEthiopiaMedium1,6148,2481GambelaArticle
GMOGombe Lawanti International AirportNigeriaMedium1,59010,8271GombeArticle
GMZLa Gomera AirportSpainSmall7164,9211Alajero, La Gomera IslandArticle
GOMGoma International AirportDemocratic Republic of the CongoLarge5,0899,6951GomaArticle
GOUGaroua International AirportCameroonLarge79411,0321GarouaArticle
GRJGeorge AirportSouth AfricaLarge6486,5621GeorgeArticle
GXGNegage AirportAngolaMedium4,1057,8741NegageArticle
HAHPrince Said Ibrahim International AirportComorosMedium939,5141MoroniArticle
HALHalali AirportNamibiaSmall3,639 0HalaliArticle
HBEAlexandria International AirportEgyptLarge17111,1562AlexandriaArticle
HDSEastgate Airport / Air Force Base HoedspruitSouth AfricaMedium1,80113,0942HoedspruitArticle
HGAEgal International AirportSomaliaLarge4,47112,1391HargeisaArticle
HGOKorhogo AirportCôte d'IvoireMedium1,2146,8901KorhogoArticle
HILShilavo AirportEthiopiaSmall1,296 0ShilavoArticle
HLALanseria International AirportSouth AfricaLarge4,5179,9961JohannesburgArticle
HLESaint Helena International AirportSaint Helena, Ascension and Tristan da CunhaMedium1,0176,3981JamestownArticle
HMBSuhaj International AirportEgyptLarge3229,8431SuhajArticle
HMEHassi Messaoud-Oued Irara Krim Belkacem AirportAlgeriaMedium4639,8432Hassi MessaoudArticle
HRERobert Gabriel Mugabe International AirportZimbabweLarge4,88715,5021HarareArticle
HRGHurghada International AirportEgyptLarge3213,1712HurghadaArticle
HUEHumera AirportEthiopiaSmall1,930 0AkwiArticle
IAMZarzaitine - In Aménas AirportAlgeriaMedium1,8479,8432In AménasArticle
IBAIbadan AirportNigeriaMedium7257,8751IbadanArticle
ILRGeneral Tunde Idiagbon International AirportNigeriaLarge1,12610,1691Ilorin/OgbomoshoArticle
INHInhambane AirportMozambiqueMedium304,9212InhambaneArticle
INOInongo AirportDemocratic Republic of the CongoSmall1,0403,9371InongoArticle
INZIn Salah AirportAlgeriaMedium8969,8431In SalahArticle
IRPMatari AirportDemocratic Republic of the CongoMedium2,4388,2021IsiroArticle
JIBDjibouti-Ambouli AirportDjiboutiLarge4910,3351Djibouti CityArticle
JIJGerad Wilwal International AirportEthiopiaLarge5,9548,2021JijigaArticle
JIMJimma AirportEthiopiaMedium5,50010,2361JimmaArticle
JJMMulika Lodge AirportKenyaSmall2,2303,2811Meru-KinnaArticle
JNBO.R. Tambo International AirportSouth AfricaLarge5,55814,4952JohannesburgArticle
JOSYakubu Gowon AirportNigeriaMedium4,2329,8451JosArticle
JROKilimanjaro International AirportTanzaniaLarge2,93211,8111ArushaArticle
JUBJuba International AirportSouth SudanLarge1,51310,1711JubaArticle
KAAKasama AirportZambiaSmall4,5416,1481KasamaArticle
KABKariba AirportZimbabweMedium1,7065,4131KaribaArticle
KADKaduna International AirportNigeriaLarge2,0739,8431KadunaArticle
KANMallam Aminu Kano International AirportNigeriaLarge1,56210,8312KanoArticle
KGAKananga AirportDemocratic Republic of the CongoMedium2,1397,2181KanangaArticle
KGLKigali International AirportRwandaLarge4,85911,4831KigaliArticle
KHXSavannah AirstripUgandaMedium3,6006,0041KihihiArticle
KIMKimberley AirportSouth AfricaLarge3,9509,8432KimberleyArticle
KISKisumu International AirportKenyaLarge3,73410,8231KisumuArticle
KKWKikwit AirportDemocratic Republic of the CongoMedium1,5725,1511KikwitArticle
KMEKamembe AirportRwandaMedium5,1924,9211KamembeArticle
KMNKamina City AirportDemocratic Republic of the CongoSmall3,4754,8231KaminaArticle
KMSPrempeh I International AirportGhanaLarge9427,6121KumasiArticle
KNDKindu AirportDemocratic Republic of the CongoMedium1,6307,2181KinduArticle
KREKirundo AirportBurundiSmall4,5113,2811KirundoArticle
KRTKhartoum International AirportSudanLarge1,2659,7511KhartoumArticle
KSLKassala AirportSudanMedium1,6718,2021KassalaArticle
KWZKolwezi AirportDemocratic Republic of the CongoMedium5,0075,7411KolweziArticle

Documentation

GridControl has 224 parameters. They are listed here in full, in eight sections you can open one at a time or all at once, with one or two sentences each and a pointer to the page that shows the feature; the detailed tables live there: columns on Column sets and Dynamic columns, editing on Batch editing, selection and detail rows on Master-detail, export on Export & templates, loading on On-demand loading. Every row was checked against the place in the grid that reads the parameter; five parameters are declared but never read and say so.

Data binding

ParameterTypeDefaultDescription
DataSourceIEnumerable<TValue>?nullThe rows to show, enumerated for display, filtering, sorting and export. Cannot be set together with ItemsProvider.
ChildContentRenderFragment?nullHolds the column definitions. Rendered hidden inside a cascading IGridOwner so each GridColumn registers itself with the grid. See Column sets.

Settings objects and direct row events

ParameterTypeDefaultDescription
FilterSettingsRefFilterSettings?nullPlain FilterSettings object read for the filter type, case sensitivity, search-as-you-type, the immediate-mode delay and the filter-row operators.
PageSettingsRefPageSettings?nullPlain PageSettings object whose PageSize, PageSizes and PageCount take precedence over the grid's own paging parameters.
EditSettingsRefEditSettings?nullPlain EditSettings object that turns editing on: mode, adding, deleting, confirmation and new-row position are all read from it. See Batch editing.
SelectionSettingsRefSelectionSettings?nullPlain SelectionSettings object read for the selection mode, the checkbox column and checkbox-only selection.
EventsRefGridControlEvents<TValue>?nullPlain GridControlEvents bundle; each grid event is raised through it when the matching callback has a delegate.
RowResizingEventCallback<RowResizeEventArgs<TValue>>—Fires while a row is being resized, after the EventsRef counterpart; set Cancel to keep the old height or change NewHeight.
RowResizedEventCallback<RowResizeEventArgs<TValue>>—Fires when the resize ends, with the final height.
RowReorderingEventCallback<RowReorderEventArgs<TValue>>—Fires before a dragged row is moved; set Cancel to abandon the drop.
RowReorderedEventCallback<RowReorderEventArgs<TValue>>—Fires after the row has moved and been selected, with the resolved NewIndex.

On-demand loading

ParameterTypeDefaultDescription
ItemsProviderGridItemsProvider<TValue>?nullRange provider that replaces DataSource; needs a bounded Height and, without provider grouping, fixed-height rows. Filtering, sorting and grouping become request descriptors. See On-demand loading.
ItemsProviderContextKeyobject?nullOpaque value sent with every request; a change starts a new query generation from the first row.
ItemKeySelectorFunc<TValue, object?>?nullStable key for rendering, selection state and grid state when provider calls return new instances of the same row. See On-demand loading.
ItemsProviderCacheSizeint4Completed ranges kept per grid, clamped to 1 to 8.
EnableProviderFilterValueRequestsboolfalseLets the Excel-style checklist ask the provider for distinct values with the FilterValues purpose; off, a partial checklist selection cannot be applied. See On-demand loading.
ProviderFilterValueRequestSizeint1_000Distinct values requested for one checklist, clamped to 1 to 100000.
EnableProviderGroupingboolfalseProvider-executed lazy grouping when AllowGrouping and group descriptors are active; groups and their rows load on expansion. See On-demand loading.
ProviderGroupPageSizeint100Groups requested per lazy group page, clamped to 1 to 10000. See On-demand loading.
ProviderGroupItemPageSizeint250Leaf rows requested per lazy group page, clamped to 1 to 100000. See On-demand loading.
ProviderGroupsInitiallyCollapsedbooltrueNewly received provider groups start collapsed; off, DefaultGroupsCollapsed decides. See On-demand loading.

GridColumn is documented on Column sets (layout), Dynamic columns (data) and Batch editing (editors). The events live on GridControlEvents, passed through EventsRef; the selection ones are on Master-detail and the editing ones on Batch editing.

An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.