DataGrid

BitDataGrid is a feature-rich, native Blazor data grid: sorting, filtering, paging, virtualization, selection, inline editing, grouping, aggregates, tree-view, master-detail and theming.

Notes

To use this component, you need to install the
Bit.BlazorUI.Extras
NuGet package, as described in the Optional steps of the Getting started page.

Usage

Basic & sorting
Bind a collection, declare columns, and you get sorting out of the box. Click a header to sort ascending → descending → unsorted. Hold Ctrl (or ⌘) and click additional headers for multi-column sorting.

1
Vintage Gadget 212
Home
$171.75
131
3.9
2
Eco Notebook 554
Clothing
$382.16
130
3.1
3
Classic Gadget 181
Toys
$813.02
269
1.2
4
Vintage Blender 267
Electronics
$310.12
291
4.3
5
Vintage Jacket 234
Electronics
$55.50
390
3.5
6
Smart Drone 229
Electronics
$603.51
257
1.2
7
Eco Widget 428
Books
$72.97
359
1.3
8
Pro Blender 549
Electronics
$825.55
6
1.0
9
Deluxe Mug 514
Clothing
$615.44
22
2.5
10
Mini Jacket 367
Grocery
$585.87
367
1.1
11
Vintage Gadget 192
Home
$334.92
388
1.6
12
Mini Mug 788
Toys
$712.80
144
3.2
13
Classic Mug 124
Books
$267.79
19
1.9
14
Compact Gadget 195
Clothing
$325.60
375
4.3
15
Deluxe Speaker 932
Sports
$281.65
272
3.5
16
Eco Widget 307
Grocery
$982.55
390
1.5
17
Mini Blender 740
Electronics
$597.20
195
4.5
18
Pro Blender 952
Sports
$132.04
53
1.0
19
Classic Drone 459
Electronics
$906.58
481
4.6
20
Mega Mug 839
Sports
$282.70
169
3.1
21
Mega Speaker 349
Books
$830.28
320
1.3
22
Modern Mug 947
Home
$886.86
484
1.6
23
Mini Backpack 199
Sports
$349.39
260
3.9
24
Mini Speaker 940
Electronics
$60.13
107
2.3
25
Deluxe Lamp 430
Home
$760.77
331
5.0
26
Eco Mug 633
Toys
$388.23
478
1.3
27
Compact Camera 900
Electronics
$300.37
290
1.1
28
Mega Mug 366
Grocery
$749.69
15
2.4
29
Mini Jacket 409
Books
$604.08
321
3.4
30
Premium Camera 361
Grocery
$352.80
0
3.3
31
Mega Gadget 949
Books
$654.24
99
3.6
32
Mega Lamp 485
Books
$787.62
277
3.2
33
Compact Backpack 302
Clothing
$540.00
406
3.8
34
Pro Mug 551
Grocery
$45.94
206
2.7
35
Ultra Mug 514
Clothing
$484.40
357
2.7
36
Pro Camera 944
Home
$211.34
473
4.5
37
Mini Notebook 156
Electronics
$900.67
312
4.7
38
Premium Jacket 198
Electronics
$651.34
10
1.9
39
Classic Drone 215
Sports
$290.56
272
1.2
40
Mini Sneaker 570
Sports
$897.23
338
4.6
41
Modern Camera 946
Sports
$661.07
44
4.2
42
Vintage Mug 824
Sports
$444.42
453
1.8
43
Mini Mug 925
Electronics
$843.33
173
4.4
44
Premium Camera 560
Grocery
$35.33
277
3.6
45
Vintage Gadget 237
Home
$383.48
282
4.9
46
Pro Drone 577
Electronics
$285.56
438
4.7
47
Eco Jacket 846
Grocery
$59.26
414
2.8
48
Smart Camera 226
Toys
$612.62
229
4.1
49
Classic Gadget 202
Electronics
$494.25
256
2.4
50
Mega Sneaker 417
Sports
$955.45
169
2.1
Filtering & paging
A quick-filter row sits under the header; the pager controls page size and navigation. Type in any filter box to narrow results (case-insensitive contains).

1
Vintage Gadget 212
Home
Wayne Enterprises
$171.75
131
2
Eco Notebook 554
Clothing
Soylent
$382.16
130
3
Classic Gadget 181
Toys
Wonka Inc
$813.02
269
4
Vintage Blender 267
Electronics
Wayne Enterprises
$310.12
291
5
Vintage Jacket 234
Electronics
Wayne Enterprises
$55.50
390
6
Smart Drone 229
Electronics
Stark Industries
$603.51
257
7
Eco Widget 428
Books
Wayne Enterprises
$72.97
359
8
Pro Blender 549
Electronics
Acme Corp
$825.55
6
9
Deluxe Mug 514
Clothing
Wayne Enterprises
$615.44
22
10
Mini Jacket 367
Grocery
Initech
$585.87
367
1–10 of 200
Page 1 of 20
Selection
Single or multiple selection with a select-all header checkbox and two-way binding.

0 selected

1
Vintage Gadget 212
Home
$171.75
2
Eco Notebook 554
Clothing
$382.16
3
Classic Gadget 181
Toys
$813.02
4
Vintage Blender 267
Electronics
$310.12
5
Vintage Jacket 234
Electronics
$55.50
6
Smart Drone 229
Electronics
$603.51
7
Eco Widget 428
Books
$72.97
8
Pro Blender 549
Electronics
$825.55
9
Deluxe Mug 514
Clothing
$615.44
10
Mini Jacket 367
Grocery
$585.87
1–10 of 60
Page 1 of 6
Inline editing
Add, edit, save, cancel and delete rows with type-aware editors (text, number, checkbox, date, enum). Use EditTemplate on a column to supply your own editor.

Actions
1
Vintage Gadget 212
Home
$171.75
131
3.9
2023-01-19
False
2
Eco Notebook 554
Clothing
$382.16
130
3.1
2019-07-18
True
3
Classic Gadget 181
Toys
$813.02
269
1.2
2023-03-12
False
4
Vintage Blender 267
Electronics
$310.12
291
4.3
2021-01-25
True
5
Vintage Jacket 234
Electronics
$55.50
390
3.5
2022-08-20
True
6
Smart Drone 229
Electronics
$603.51
257
1.2
2020-02-18
False
7
Eco Widget 428
Books
$72.97
359
1.3
2023-12-08
False
8
Pro Blender 549
Electronics
$825.55
6
1.0
2020-06-02
True
9
Deluxe Mug 514
Clothing
$615.44
22
2.5
2021-08-11
True
10
Mini Jacket 367
Grocery
$585.87
367
1.1
2018-10-04
False
1–10 of 25
Page 1 of 3

Grouping & aggregates
Click the ⊞ button in a groupable column header to group by it (click again to ungroup). Each group is collapsible and shows its own aggregates; the footer shows grand totals. Group by both Category and Supplier to see multi-level grouping.

1
Vintage Gadget 212
Home
Wayne Enterprises
$171.75
131
3.9
2
Eco Notebook 554
Clothing
Soylent
$382.16
130
3.1
3
Classic Gadget 181
Toys
Wonka Inc
$813.02
269
1.2
4
Vintage Blender 267
Electronics
Wayne Enterprises
$310.12
291
4.3
5
Vintage Jacket 234
Electronics
Wayne Enterprises
$55.50
390
3.5
6
Smart Drone 229
Electronics
Stark Industries
$603.51
257
1.2
7
Eco Widget 428
Books
Wayne Enterprises
$72.97
359
1.3
8
Pro Blender 549
Electronics
Acme Corp
$825.55
6
1.0
9
Deluxe Mug 514
Clothing
Wayne Enterprises
$615.44
22
2.5
10
Mini Jacket 367
Grocery
Initech
$585.87
367
1.1
11
Vintage Gadget 192
Home
Soylent
$334.92
388
1.6
12
Mini Mug 788
Toys
Acme Corp
$712.80
144
3.2
13
Classic Mug 124
Books
Acme Corp
$267.79
19
1.9
14
Compact Gadget 195
Clothing
Wayne Enterprises
$325.60
375
4.3
15
Deluxe Speaker 932
Sports
Initech
$281.65
272
3.5
16
Eco Widget 307
Grocery
Initech
$982.55
390
1.5
17
Mini Blender 740
Electronics
Wonka Inc
$597.20
195
4.5
18
Pro Blender 952
Sports
Stark Industries
$132.04
53
1.0
19
Classic Drone 459
Electronics
Soylent
$906.58
481
4.6
20
Mega Mug 839
Sports
Wonka Inc
$282.70
169
3.1
21
Mega Speaker 349
Books
Wonka Inc
$830.28
320
1.3
22
Modern Mug 947
Home
Stark Industries
$886.86
484
1.6
23
Mini Backpack 199
Sports
Wayne Enterprises
$349.39
260
3.9
24
Mini Speaker 940
Electronics
Initech
$60.13
107
2.3
25
Deluxe Lamp 430
Home
Initech
$760.77
331
5.0
26
Eco Mug 633
Toys
Initech
$388.23
478
1.3
27
Compact Camera 900
Electronics
Stark Industries
$300.37
290
1.1
28
Mega Mug 366
Grocery
Stark Industries
$749.69
15
2.4
29
Mini Jacket 409
Books
Acme Corp
$604.08
321
3.4
30
Premium Camera 361
Grocery
Globex
$352.80
0
3.3
31
Mega Gadget 949
Books
Initech
$654.24
99
3.6
32
Mega Lamp 485
Books
Stark Industries
$787.62
277
3.2
33
Compact Backpack 302
Clothing
Wayne Enterprises
$540.00
406
3.8
34
Pro Mug 551
Grocery
Umbrella
$45.94
206
2.7
35
Ultra Mug 514
Clothing
Wayne Enterprises
$484.40
357
2.7
36
Pro Camera 944
Home
Wayne Enterprises
$211.34
473
4.5
37
Mini Notebook 156
Electronics
Umbrella
$900.67
312
4.7
38
Premium Jacket 198
Electronics
Wayne Enterprises
$651.34
10
1.9
39
Classic Drone 215
Sports
Acme Corp
$290.56
272
1.2
40
Mini Sneaker 570
Sports
Wayne Enterprises
$897.23
338
4.6
41
Modern Camera 946
Sports
Globex
$661.07
44
4.2
42
Vintage Mug 824
Sports
Initech
$444.42
453
1.8
43
Mini Mug 925
Electronics
Wonka Inc
$843.33
173
4.4
44
Premium Camera 560
Grocery
Globex
$35.33
277
3.6
45
Vintage Gadget 237
Home
Wonka Inc
$383.48
282
4.9
46
Pro Drone 577
Electronics
Initech
$285.56
438
4.7
47
Eco Jacket 846
Grocery
Wonka Inc
$59.26
414
2.8
48
Smart Camera 226
Toys
Initech
$612.62
229
4.1
49
Classic Gadget 202
Electronics
Globex
$494.25
256
2.4
50
Mega Sneaker 417
Sports
Soylent
$955.45
169
2.1
51
Premium Gadget 932
Clothing
Wayne Enterprises
$741.93
301
2.9
52
Premium Lamp 283
Toys
Soylent
$943.60
49
2.2
53
Pro Mug 237
Toys
Initech
$264.98
237
3.1
54
Eco Lamp 139
Electronics
Wonka Inc
$175.86
112
1.9
55
Ultra Lamp 134
Grocery
Wayne Enterprises
$47.06
77
3.3
56
Ultra Blender 911
Grocery
Initech
$80.83
62
5.0
57
Ultra Gadget 323
Books
Stark Industries
$647.39
313
2.7
58
Deluxe Blender 420
Home
Acme Corp
$506.54
17
4.8
59
Deluxe Camera 513
Sports
Acme Corp
$234.18
305
3.3
60
Eco Mug 642
Electronics
Umbrella
$809.15
442
1.8
61
Vintage Lamp 246
Books
Acme Corp
$971.43
238
1.8
62
Eco Backpack 738
Electronics
Acme Corp
$366.59
112
3.8
63
Ultra Notebook 129
Home
Soylent
$488.57
483
4.9
64
Deluxe Widget 171
Books
Wayne Enterprises
$384.18
206
3.8
65
Classic Gadget 833
Electronics
Soylent
$866.59
268
1.8
66
Eco Backpack 963
Books
Acme Corp
$371.05
236
2.8
67
Mini Mug 765
Sports
Wonka Inc
$200.57
57
3.5
68
Mini Jacket 661
Books
Wonka Inc
$632.20
439
2.7
69
Modern Jacket 576
Electronics
Wonka Inc
$429.20
49
1.4
70
Compact Mug 696
Sports
Wayne Enterprises
$244.82
228
2.7
71
Compact Backpack 959
Sports
Umbrella
$57.23
410
1.5
72
Ultra Lamp 199
Toys
Acme Corp
$249.92
68
2.7
73
Ultra Backpack 762
Sports
Globex
$991.34
272
3.8
74
Pro Jacket 295
Sports
Soylent
$37.91
45
2.7
75
Compact Notebook 426
Clothing
Acme Corp
$869.12
262
4.5
76
Ultra Sneaker 789
Toys
Soylent
$743.04
101
4.7
77
Premium Notebook 878
Clothing
Globex
$39.85
338
1.9
78
Vintage Drone 655
Toys
Umbrella
$121.29
349
2.4
79
Mega Backpack 316
Sports
Wayne Enterprises
$138.33
341
3.4
80
Premium Speaker 971
Home
Globex
$496.89
335
2.8
Templates & detail rows
Customize any cell, header or footer, and expand rows to reveal detail content. Click the ▸ toggle on the left of a row to expand its detail panel.

Vintage Gadget 212
Home
$171.75
131 in stock
Eco Notebook 554
Clothing
$382.16
130 in stock
Classic Gadget 181
Toys
$813.02
269 in stock
Vintage Blender 267
Electronics
$310.12
291 in stock
Vintage Jacket 234
Electronics
$55.50
390 in stock
Smart Drone 229
Electronics
$603.51
257 in stock
Eco Widget 428
Books
$72.97
359 in stock
Pro Blender 549
Electronics
$825.55
6 in stock
Deluxe Mug 514
Clothing
$615.44
22 in stock
Mini Jacket 367
Grocery
$585.87
367 in stock
Vintage Gadget 192
Home
$334.92
388 in stock
Mini Mug 788
Toys
$712.80
144 in stock
Classic Mug 124
Books
$267.79
19 in stock
Compact Gadget 195
Clothing
$325.60
375 in stock
Deluxe Speaker 932
Sports
$281.65
272 in stock
Eco Widget 307
Grocery
$982.55
390 in stock
Mini Blender 740
Electronics
$597.20
195 in stock
Pro Blender 952
Sports
$132.04
53 in stock
Classic Drone 459
Electronics
$906.58
481 in stock
Mega Mug 839
Sports
$282.70
169 in stock
Mega Speaker 349
Books
$830.28
320 in stock
Modern Mug 947
Home
$886.86
484 in stock
Mini Backpack 199
Sports
$349.39
260 in stock
Mini Speaker 940
Electronics
$60.13
107 in stock
Deluxe Lamp 430
Home
$760.77
331 in stock
Eco Mug 633
Toys
$388.23
478 in stock
Compact Camera 900
Electronics
$300.37
290 in stock
Mega Mug 366
Grocery
$749.69
15 in stock
Mini Jacket 409
Books
$604.08
321 in stock
Premium Camera 361
Grocery
$352.80
Out of stock
Resize, reorder & freeze columns
Drag column edges to resize, drag headers to reorder, and pin columns in place. The ID and Name columns are frozen, staying visible while you scroll horizontally.

1
Vintage Gadget 212
Home
Wayne Enterprises
$171.75
131
3.9
2023-01-19
2
Eco Notebook 554
Clothing
Soylent
$382.16
130
3.1
2019-07-18
3
Classic Gadget 181
Toys
Wonka Inc
$813.02
269
1.2
2023-03-12
4
Vintage Blender 267
Electronics
Wayne Enterprises
$310.12
291
4.3
2021-01-25
5
Vintage Jacket 234
Electronics
Wayne Enterprises
$55.50
390
3.5
2022-08-20
6
Smart Drone 229
Electronics
Stark Industries
$603.51
257
1.2
2020-02-18
7
Eco Widget 428
Books
Wayne Enterprises
$72.97
359
1.3
2023-12-08
8
Pro Blender 549
Electronics
Acme Corp
$825.55
6
1.0
2020-06-02
9
Deluxe Mug 514
Clothing
Wayne Enterprises
$615.44
22
2.5
2021-08-11
10
Mini Jacket 367
Grocery
Initech
$585.87
367
1.1
2018-10-04
11
Vintage Gadget 192
Home
Soylent
$334.92
388
1.6
2022-10-27
12
Mini Mug 788
Toys
Acme Corp
$712.80
144
3.2
2020-06-09
13
Classic Mug 124
Books
Acme Corp
$267.79
19
1.9
2021-09-09
14
Compact Gadget 195
Clothing
Wayne Enterprises
$325.60
375
4.3
2023-10-09
15
Deluxe Speaker 932
Sports
Initech
$281.65
272
3.5
2022-12-13
16
Eco Widget 307
Grocery
Initech
$982.55
390
1.5
2022-12-24
17
Mini Blender 740
Electronics
Wonka Inc
$597.20
195
4.5
2022-02-04
18
Pro Blender 952
Sports
Stark Industries
$132.04
53
1.0
2018-11-08
19
Classic Drone 459
Electronics
Soylent
$906.58
481
4.6
2022-03-05
20
Mega Mug 839
Sports
Wonka Inc
$282.70
169
3.1
2022-08-25
21
Mega Speaker 349
Books
Wonka Inc
$830.28
320
1.3
2019-08-05
22
Modern Mug 947
Home
Stark Industries
$886.86
484
1.6
2022-11-05
23
Mini Backpack 199
Sports
Wayne Enterprises
$349.39
260
3.9
2021-02-06
24
Mini Speaker 940
Electronics
Initech
$60.13
107
2.3
2022-05-29
25
Deluxe Lamp 430
Home
Initech
$760.77
331
5.0
2019-04-24
26
Eco Mug 633
Toys
Initech
$388.23
478
1.3
2019-03-07
27
Compact Camera 900
Electronics
Stark Industries
$300.37
290
1.1
2021-10-02
28
Mega Mug 366
Grocery
Stark Industries
$749.69
15
2.4
2023-10-08
29
Mini Jacket 409
Books
Acme Corp
$604.08
321
3.4
2020-05-11
30
Premium Camera 361
Grocery
Globex
$352.80
0
3.3
2023-02-25
31
Mega Gadget 949
Books
Initech
$654.24
99
3.6
2019-04-16
32
Mega Lamp 485
Books
Stark Industries
$787.62
277
3.2
2021-10-01
33
Compact Backpack 302
Clothing
Wayne Enterprises
$540.00
406
3.8
2020-10-10
34
Pro Mug 551
Grocery
Umbrella
$45.94
206
2.7
2020-12-02
35
Ultra Mug 514
Clothing
Wayne Enterprises
$484.40
357
2.7
2022-12-21
36
Pro Camera 944
Home
Wayne Enterprises
$211.34
473
4.5
2020-07-01
37
Mini Notebook 156
Electronics
Umbrella
$900.67
312
4.7
2023-02-28
38
Premium Jacket 198
Electronics
Wayne Enterprises
$651.34
10
1.9
2019-06-22
39
Classic Drone 215
Sports
Acme Corp
$290.56
272
1.2
2020-06-08
40
Mini Sneaker 570
Sports
Wayne Enterprises
$897.23
338
4.6
2021-10-15
Column header groups
Set Group on consecutive columns to render them under a single spanning header cell.

Identity
Commercials
Quality
1
Vintage Gadget 212
Home
$171.75
131
3.9
Wayne Enterprises
2
Eco Notebook 554
Clothing
$382.16
130
3.1
Soylent
3
Classic Gadget 181
Toys
$813.02
269
1.2
Wonka Inc
4
Vintage Blender 267
Electronics
$310.12
291
4.3
Wayne Enterprises
5
Vintage Jacket 234
Electronics
$55.50
390
3.5
Wayne Enterprises
6
Smart Drone 229
Electronics
$603.51
257
1.2
Stark Industries
7
Eco Widget 428
Books
$72.97
359
1.3
Wayne Enterprises
8
Pro Blender 549
Electronics
$825.55
6
1.0
Acme Corp
9
Deluxe Mug 514
Clothing
$615.44
22
2.5
Wayne Enterprises
10
Mini Jacket 367
Grocery
$585.87
367
1.1
Initech
11
Vintage Gadget 192
Home
$334.92
388
1.6
Soylent
12
Mini Mug 788
Toys
$712.80
144
3.2
Acme Corp
13
Classic Mug 124
Books
$267.79
19
1.9
Acme Corp
14
Compact Gadget 195
Clothing
$325.60
375
4.3
Wayne Enterprises
15
Deluxe Speaker 932
Sports
$281.65
272
3.5
Initech
16
Eco Widget 307
Grocery
$982.55
390
1.5
Initech
17
Mini Blender 740
Electronics
$597.20
195
4.5
Wonka Inc
18
Pro Blender 952
Sports
$132.04
53
1.0
Stark Industries
19
Classic Drone 459
Electronics
$906.58
481
4.6
Soylent
20
Mega Mug 839
Sports
$282.70
169
3.1
Wonka Inc
21
Mega Speaker 349
Books
$830.28
320
1.3
Wonka Inc
22
Modern Mug 947
Home
$886.86
484
1.6
Stark Industries
23
Mini Backpack 199
Sports
$349.39
260
3.9
Wayne Enterprises
24
Mini Speaker 940
Electronics
$60.13
107
2.3
Initech
25
Deluxe Lamp 430
Home
$760.77
331
5.0
Initech
26
Eco Mug 633
Toys
$388.23
478
1.3
Initech
27
Compact Camera 900
Electronics
$300.37
290
1.1
Stark Industries
28
Mega Mug 366
Grocery
$749.69
15
2.4
Stark Industries
29
Mini Jacket 409
Books
$604.08
321
3.4
Acme Corp
30
Premium Camera 361
Grocery
$352.80
0
3.3
Globex
31
Mega Gadget 949
Books
$654.24
99
3.6
Initech
32
Mega Lamp 485
Books
$787.62
277
3.2
Stark Industries
33
Compact Backpack 302
Clothing
$540.00
406
3.8
Wayne Enterprises
34
Pro Mug 551
Grocery
$45.94
206
2.7
Umbrella
35
Ultra Mug 514
Clothing
$484.40
357
2.7
Wayne Enterprises
36
Pro Camera 944
Home
$211.34
473
4.5
Wayne Enterprises
37
Mini Notebook 156
Electronics
$900.67
312
4.7
Umbrella
38
Premium Jacket 198
Electronics
$651.34
10
1.9
Wayne Enterprises
39
Classic Drone 215
Sports
$290.56
272
1.2
Acme Corp
40
Mini Sneaker 570
Sports
$897.23
338
4.6
Wayne Enterprises
Column spanning
Provide a ColSpan function on a column to let a single cell span several columns based on its row. Discontinued rows span the Name cell over Category; premium rows span Price over Stock.

1
Vintage Gadget 212
Home
$171.75
131
2
⚠ Eco Notebook 554 — discontinued (no further details)
$382.16
130
3
Classic Gadget 181
Toys
★ Premium: $813.02 · 269 in stock
4
⚠ Vintage Blender 267 — discontinued (no further details)
$310.12
291
5
⚠ Vintage Jacket 234 — discontinued (no further details)
$55.50
390
6
Smart Drone 229
Electronics
$603.51
257
7
Eco Widget 428
Books
$72.97
359
8
⚠ Pro Blender 549 — discontinued (no further details)
★ Premium: $825.55 · 6 in stock
9
⚠ Deluxe Mug 514 — discontinued (no further details)
$615.44
22
10
Mini Jacket 367
Grocery
$585.87
367
11
⚠ Vintage Gadget 192 — discontinued (no further details)
$334.92
388
12
Mini Mug 788
Toys
$712.80
144
13
Classic Mug 124
Books
$267.79
19
14
⚠ Compact Gadget 195 — discontinued (no further details)
$325.60
375
15
Deluxe Speaker 932
Sports
$281.65
272
16
Eco Widget 307
Grocery
★ Premium: $982.55 · 390 in stock
17
Mini Blender 740
Electronics
$597.20
195
18
⚠ Pro Blender 952 — discontinued (no further details)
$132.04
53
19
⚠ Classic Drone 459 — discontinued (no further details)
★ Premium: $906.58 · 481 in stock
20
Mega Mug 839
Sports
$282.70
169
21
Mega Speaker 349
Books
★ Premium: $830.28 · 320 in stock
22
Modern Mug 947
Home
★ Premium: $886.86 · 484 in stock
23
Mini Backpack 199
Sports
$349.39
260
24
⚠ Mini Speaker 940 — discontinued (no further details)
$60.13
107
25
Deluxe Lamp 430
Home
$760.77
331
26
Eco Mug 633
Toys
$388.23
478
27
Compact Camera 900
Electronics
$300.37
290
28
Mega Mug 366
Grocery
$749.69
15
29
Mini Jacket 409
Books
$604.08
321
30
Premium Camera 361
Grocery
$352.80
0
31
Mega Gadget 949
Books
$654.24
99
32
Mega Lamp 485
Books
$787.62
277
33
Compact Backpack 302
Clothing
$540.00
406
34
⚠ Pro Mug 551 — discontinued (no further details)
$45.94
206
35
⚠ Ultra Mug 514 — discontinued (no further details)
$484.40
357
36
Pro Camera 944
Home
$211.34
473
37
Mini Notebook 156
Electronics
★ Premium: $900.67 · 312 in stock
38
Premium Jacket 198
Electronics
$651.34
10
39
⚠ Classic Drone 215 — discontinued (no further details)
$290.56
272
40
Mini Sneaker 570
Sports
★ Premium: $897.23 · 338 in stock
Virtualization
Render very large datasets smoothly — only visible rows hit the DOM. Virtualization requires a fixed Height and RowHeight.

10,000 rows

Server-side data
Set the OnRead callback to take over sorting/filtering/paging (e.g. against a database). This example simulates a backend with a small delay.

1
Vintage Gadget 212
Home
Wayne Enterprises
$171.75
131
2
Eco Notebook 554
Clothing
Soylent
$382.16
130
3
Classic Gadget 181
Toys
Wonka Inc
$813.02
269
4
Vintage Blender 267
Electronics
Wayne Enterprises
$310.12
291
5
Vintage Jacket 234
Electronics
Wayne Enterprises
$55.50
390
6
Smart Drone 229
Electronics
Stark Industries
$603.51
257
7
Eco Widget 428
Books
Wayne Enterprises
$72.97
359
8
Pro Blender 549
Electronics
Acme Corp
$825.55
6
9
Deluxe Mug 514
Clothing
Wayne Enterprises
$615.44
22
10
Mini Jacket 367
Grocery
Initech
$585.87
367
1–10 of 523
Page 1 of 53

Last request → skip 0, take 10, sorts: 0, filters: 0, total: 523
Infinite scrolling
Set OnLoadMore instead of binding Items. The grid appends the next batch automatically as the user scrolls toward the end — with no total count or paging UI. A fixed Height is required.

1
Vintage Gadget 212
Home
Wayne Enterprises
$171.75
131
3.9
2
Eco Notebook 554
Clothing
Soylent
$382.16
130
3.1
3
Classic Gadget 181
Toys
Wonka Inc
$813.02
269
1.2
4
Vintage Blender 267
Electronics
Wayne Enterprises
$310.12
291
4.3
5
Vintage Jacket 234
Electronics
Wayne Enterprises
$55.50
390
3.5
6
Smart Drone 229
Electronics
Stark Industries
$603.51
257
1.2
7
Eco Widget 428
Books
Wayne Enterprises
$72.97
359
1.3
8
Pro Blender 549
Electronics
Acme Corp
$825.55
6
1.0
9
Deluxe Mug 514
Clothing
Wayne Enterprises
$615.44
22
2.5
10
Mini Jacket 367
Grocery
Initech
$585.87
367
1.1
11
Vintage Gadget 192
Home
Soylent
$334.92
388
1.6
12
Mini Mug 788
Toys
Acme Corp
$712.80
144
3.2
13
Classic Mug 124
Books
Acme Corp
$267.79
19
1.9
14
Compact Gadget 195
Clothing
Wayne Enterprises
$325.60
375
4.3
15
Deluxe Speaker 932
Sports
Initech
$281.65
272
3.5
16
Eco Widget 307
Grocery
Initech
$982.55
390
1.5
17
Mini Blender 740
Electronics
Wonka Inc
$597.20
195
4.5
18
Pro Blender 952
Sports
Stark Industries
$132.04
53
1.0
19
Classic Drone 459
Electronics
Soylent
$906.58
481
4.6
20
Mega Mug 839
Sports
Wonka Inc
$282.70
169
3.1
21
Mega Speaker 349
Books
Wonka Inc
$830.28
320
1.3
22
Modern Mug 947
Home
Stark Industries
$886.86
484
1.6
23
Mini Backpack 199
Sports
Wayne Enterprises
$349.39
260
3.9
24
Mini Speaker 940
Electronics
Initech
$60.13
107
2.3
25
Deluxe Lamp 430
Home
Initech
$760.77
331
5.0
26
Eco Mug 633
Toys
Initech
$388.23
478
1.3
27
Compact Camera 900
Electronics
Stark Industries
$300.37
290
1.1
28
Mega Mug 366
Grocery
Stark Industries
$749.69
15
2.4
29
Mini Jacket 409
Books
Acme Corp
$604.08
321
3.4
30
Premium Camera 361
Grocery
Globex
$352.80
0
3.3
31
Mega Gadget 949
Books
Initech
$654.24
99
3.6
32
Mega Lamp 485
Books
Stark Industries
$787.62
277
3.2
33
Compact Backpack 302
Clothing
Wayne Enterprises
$540.00
406
3.8
34
Pro Mug 551
Grocery
Umbrella
$45.94
206
2.7
35
Ultra Mug 514
Clothing
Wayne Enterprises
$484.40
357
2.7
36
Pro Camera 944
Home
Wayne Enterprises
$211.34
473
4.5
37
Mini Notebook 156
Electronics
Umbrella
$900.67
312
4.7
38
Premium Jacket 198
Electronics
Wayne Enterprises
$651.34
10
1.9
39
Classic Drone 215
Sports
Acme Corp
$290.56
272
1.2
40
Mini Sneaker 570
Sports
Wayne Enterprises
$897.23
338
4.6

Batch #1 → loaded rows 1–40 (40 rows)
Tree view (hierarchical rows)
Set the ChildrenSelector parameter to a function that returns each item's direct children. The grid then treats Items as the root nodes and renders expand/collapse toggles with indentation.


src
Folder
81,710
2025-01-17
BitDataGrid
Folder
79,470
2025-01-11
BitDataGrid.razor
File
24,500
2025-01-02
BitDataGrid.razor.cs
File
41,200
2025-01-03
Models
Folder
1,470
2025-01-07
BitDataGridColumnAlign.cs
File
320
2025-01-04
BitDataGridSortDescriptor.cs
File
540
2025-01-05
BitDataGridFilterOperator.cs
File
610
2025-01-06
Infrastructure
Folder
12,300
2025-01-10
BitDataGridDataProcessor.cs
File
8,900
2025-01-08
BitDataGridPropertyAccessor.cs
File
3,400
2025-01-09
BitDataGrid.Demo
Folder
2,240
2025-01-16
Program.cs
File
1,200
2025-01-12
Components
Folder
1,040
2025-01-15
App.razor
File
760
2025-01-13
Routes.razor
File
280
2025-01-14
docs
Folder
8,500
2025-01-20
README.md
File
6,400
2025-01-18
CHANGELOG.md
File
2,100
2025-01-19
assets
Folder
18,250
2025-01-24
logo.svg
File
4,800
2025-01-21
styles.css
File
12,300
2025-01-22
favicon.ico
File
1,150
2025-01-23
LICENSE
File
1,070
2025-01-25
.gitignore
File
410
2025-01-26
Master detail
The DetailTemplate can render anything — including another BitDataGrid. Each supplier expands to show a nested, sortable grid of the products it provides.

Acme Corp
30
6,616
$429.75
Globex
30
7,956
$437.39
Initech
29
7,437
$506.15
Soylent
31
7,153
$572.64
Stark Industries
24
4,940
$480.67
Umbrella
24
6,828
$457.84
Wayne Enterprises
42
10,224
$453.40
Wonka Inc
30
7,128
$520.82
Row reordering
Set RowReorderable="true" to show a drag handle on each row. Grab the ⠿ handle and drop it onto another row. The grid reorders the bound list in place and raises OnRowReorder.

ID
Name
Category
Price
1
Vintage Gadget 212
Home
$171.75
2
Eco Notebook 554
Clothing
$382.16
3
Classic Gadget 181
Toys
$813.02
4
Vintage Blender 267
Electronics
$310.12
5
Vintage Jacket 234
Electronics
$55.50
6
Smart Drone 229
Electronics
$603.51
7
Eco Widget 428
Books
$72.97
8
Pro Blender 549
Electronics
$825.55
9
Deluxe Mug 514
Clothing
$615.44
10
Mini Jacket 367
Grocery
$585.87
11
Vintage Gadget 192
Home
$334.92
12
Mini Mug 788
Toys
$712.80

Cell events & context menu
The grid raises OnCellClick, OnCellDoubleClick and OnCellContextMenu with the row, column and the underlying mouse event.

1
Vintage Gadget 212
Home
$171.75
2
Eco Notebook 554
Clothing
$382.16
3
Classic Gadget 181
Toys
$813.02
4
Vintage Blender 267
Electronics
$310.12
5
Vintage Jacket 234
Electronics
$55.50
6
Smart Drone 229
Electronics
$603.51
7
Eco Widget 428
Books
$72.97
8
Pro Blender 549
Electronics
$825.55
9
Deluxe Mug 514
Clothing
$615.44
10
Mini Jacket 367
Grocery
$585.87
11
Vintage Gadget 192
Home
$334.92
12
Mini Mug 788
Toys
$712.80
13
Classic Mug 124
Books
$267.79
14
Compact Gadget 195
Clothing
$325.60
15
Deluxe Speaker 932
Sports
$281.65
16
Eco Widget 307
Grocery
$982.55
17
Mini Blender 740
Electronics
$597.20
18
Pro Blender 952
Sports
$132.04
19
Classic Drone 459
Electronics
$906.58
20
Mega Mug 839
Sports
$282.70
21
Mega Speaker 349
Books
$830.28
22
Modern Mug 947
Home
$886.86
23
Mini Backpack 199
Sports
$349.39
24
Mini Speaker 940
Electronics
$60.13
25
Deluxe Lamp 430
Home
$760.77
26
Eco Mug 633
Toys
$388.23
27
Compact Camera 900
Electronics
$300.37
28
Mega Mug 366
Grocery
$749.69
29
Mini Jacket 409
Books
$604.08
30
Premium Camera 361
Grocery
$352.80
31
Mega Gadget 949
Books
$654.24
32
Mega Lamp 485
Books
$787.62
33
Compact Backpack 302
Clothing
$540.00
34
Pro Mug 551
Grocery
$45.94
35
Ultra Mug 514
Clothing
$484.40
36
Pro Camera 944
Home
$211.34
37
Mini Notebook 156
Electronics
$900.67
38
Premium Jacket 198
Electronics
$651.34
39
Classic Drone 215
Sports
$290.56
40
Mini Sneaker 570
Sports
$897.23

Click, double-click or right-click any cell.
Keyboard cell navigation
Set CellNavigation="true" to enable a roving tab stop. Use arrow keys, Home/End, Ctrl+Home/End, PageUp/PageDown to move, and Enter/F2 to edit (Esc to cancel).

Actions
1
Vintage Gadget 212
Home
$171.75
131
3.9
2
Eco Notebook 554
Clothing
$382.16
130
3.1
3
Classic Gadget 181
Toys
$813.02
269
1.2
4
Vintage Blender 267
Electronics
$310.12
291
4.3
5
Vintage Jacket 234
Electronics
$55.50
390
3.5
6
Smart Drone 229
Electronics
$603.51
257
1.2
7
Eco Widget 428
Books
$72.97
359
1.3
8
Pro Blender 549
Electronics
$825.55
6
1.0
9
Deluxe Mug 514
Clothing
$615.44
22
2.5
10
Mini Jacket 367
Grocery
$585.87
367
1.1
11
Vintage Gadget 192
Home
$334.92
388
1.6
12
Mini Mug 788
Toys
$712.80
144
3.2
13
Classic Mug 124
Books
$267.79
19
1.9
14
Compact Gadget 195
Clothing
$325.60
375
4.3
15
Deluxe Speaker 932
Sports
$281.65
272
3.5
16
Eco Widget 307
Grocery
$982.55
390
1.5
17
Mini Blender 740
Electronics
$597.20
195
4.5
18
Pro Blender 952
Sports
$132.04
53
1.0
19
Classic Drone 459
Electronics
$906.58
481
4.6
20
Mega Mug 839
Sports
$282.70
169
3.1
21
Mega Speaker 349
Books
$830.28
320
1.3
22
Modern Mug 947
Home
$886.86
484
1.6
23
Mini Backpack 199
Sports
$349.39
260
3.9
24
Mini Speaker 940
Electronics
$60.13
107
2.3
25
Deluxe Lamp 430
Home
$760.77
331
5.0
26
Eco Mug 633
Toys
$388.23
478
1.3
27
Compact Camera 900
Electronics
$300.37
290
1.1
28
Mega Mug 366
Grocery
$749.69
15
2.4
29
Mini Jacket 409
Books
$604.08
321
3.4
30
Premium Camera 361
Grocery
$352.80
0
3.3
31
Mega Gadget 949
Books
$654.24
99
3.6
32
Mega Lamp 485
Books
$787.62
277
3.2
33
Compact Backpack 302
Clothing
$540.00
406
3.8
34
Pro Mug 551
Grocery
$45.94
206
2.7
35
Ultra Mug 514
Clothing
$484.40
357
2.7
36
Pro Camera 944
Home
$211.34
473
4.5
37
Mini Notebook 156
Electronics
$900.67
312
4.7
38
Premium Jacket 198
Electronics
$651.34
10
1.9
39
Classic Drone 215
Sports
$290.56
272
1.2
40
Mini Sneaker 570
Sports
$897.23
338
4.6
Variable row height
Pass RowHeightSelector a function that returns the desired height (in pixels) for a given row. Here premium products (price over $500) get a taller row.

1
Vintage Gadget 212
Home
$171.75
131
2
Eco Notebook 554
Clothing
$382.16
130
3
Classic Gadget 181
Premium · Wonka Inc · released Mar 2023
Toys
$813.02
269
4
Vintage Blender 267
Electronics
$310.12
291
5
Vintage Jacket 234
Electronics
$55.50
390
6
Smart Drone 229
Premium · Stark Industries · released Feb 2020
Electronics
$603.51
257
7
Eco Widget 428
Books
$72.97
359
8
Pro Blender 549
Premium · Acme Corp · released Jun 2020
Electronics
$825.55
6
9
Deluxe Mug 514
Premium · Wayne Enterprises · released Aug 2021
Clothing
$615.44
22
10
Mini Jacket 367
Premium · Initech · released Oct 2018
Grocery
$585.87
367
11
Vintage Gadget 192
Home
$334.92
388
12
Mini Mug 788
Premium · Acme Corp · released Jun 2020
Toys
$712.80
144
13
Classic Mug 124
Books
$267.79
19
14
Compact Gadget 195
Clothing
$325.60
375
15
Deluxe Speaker 932
Sports
$281.65
272
16
Eco Widget 307
Premium · Initech · released Dec 2022
Grocery
$982.55
390
17
Mini Blender 740
Premium · Wonka Inc · released Feb 2022
Electronics
$597.20
195
18
Pro Blender 952
Sports
$132.04
53
19
Classic Drone 459
Premium · Soylent · released Mar 2022
Electronics
$906.58
481
20
Mega Mug 839
Sports
$282.70
169
21
Mega Speaker 349
Premium · Wonka Inc · released Aug 2019
Books
$830.28
320
22
Modern Mug 947
Premium · Stark Industries · released Nov 2022
Home
$886.86
484
23
Mini Backpack 199
Sports
$349.39
260
24
Mini Speaker 940
Electronics
$60.13
107
25
Deluxe Lamp 430
Premium · Initech · released Apr 2019
Home
$760.77
331
26
Eco Mug 633
Toys
$388.23
478
27
Compact Camera 900
Electronics
$300.37
290
28
Mega Mug 366
Premium · Stark Industries · released Oct 2023
Grocery
$749.69
15
29
Mini Jacket 409
Premium · Acme Corp · released May 2020
Books
$604.08
321
30
Premium Camera 361
Grocery
$352.80
0
31
Mega Gadget 949
Premium · Initech · released Apr 2019
Books
$654.24
99
32
Mega Lamp 485
Premium · Stark Industries · released Oct 2021
Books
$787.62
277
33
Compact Backpack 302
Premium · Wayne Enterprises · released Oct 2020
Clothing
$540.00
406
34
Pro Mug 551
Grocery
$45.94
206
35
Ultra Mug 514
Clothing
$484.40
357
36
Pro Camera 944
Home
$211.34
473
37
Mini Notebook 156
Premium · Umbrella · released Feb 2023
Electronics
$900.67
312
38
Premium Jacket 198
Premium · Wayne Enterprises · released Jun 2019
Electronics
$651.34
10
39
Classic Drone 215
Sports
$290.56
272
40
Mini Sneaker 570
Premium · Wayne Enterprises · released Oct 2021
Sports
$897.23
338
Empty state
Supply an EmptyTemplate to customize the placeholder shown when there is no data, or rely on the built-in "No records to display" message.


📭
Nothing here yet
Try loading the sample data or adjusting your filters.
Borders & Striping
Toggle column/row borders and alternate-row striping using the Bordered and Striped parameters.


1
Vintage Gadget 212
Home
$171.75
131
2
Eco Notebook 554
Clothing
$382.16
130
3
Classic Gadget 181
Toys
$813.02
269
4
Vintage Blender 267
Electronics
$310.12
291
5
Vintage Jacket 234
Electronics
$55.50
390
6
Smart Drone 229
Electronics
$603.51
257
7
Eco Widget 428
Books
$72.97
359
8
Pro Blender 549
Electronics
$825.55
6
1–8 of 60
Page 1 of 8
RTL
Render the grid in a right-to-left layout by setting the Direction parameter to BitDir.Rtl.

1
قدیمی گجت 212
خانه
$171.75
131
2
اقتصادی دفترچه 554
پوشاک
$382.16
130
3
کلاسیک گجت 181
اسباب‌بازی
$813.02
269
4
قدیمی مخلوط‌کن 267
الکترونیک
$310.12
291
5
قدیمی ژاکت 234
الکترونیک
$55.50
390
6
هوشمند پهپاد 229
الکترونیک
$603.51
257
7
اقتصادی ویجت 428
کتاب
$72.97
359
8
حرفه‌ای مخلوط‌کن 549
الکترونیک
$825.55
6
1–8 of 60
Page 1 of 8

API

BitDataGrid parameters
Name
Type
Default value
Description
Items IEnumerable<TItem>? null The data source bound to the grid for client-side processing.
OnRead Func<BitDataGridReadRequest, Task<BitDataGridReadResult<TItem>>>? null Server-side data callback. When set, the grid delegates sort/filter/page to the caller.
OnLoadMore Func<BitDataGridReadRequest, Task<BitDataGridReadResult<TItem>>>? null Infinite-scrolling data callback. Loads rows in batches and appends the next batch as the user scrolls toward the end.
LoadMoreBatchSize int 50 Number of rows fetched per batch in infinite-scrolling mode.
ChildContent RenderFragment? null Column definitions and other declarative children.
Loading bool false Shows a loading overlay while data is being fetched.
KeyField Func<TItem, object>? null Optional key selector used for selection/edit identity. Defaults to reference equality.
ChildrenSelector Func<TItem, IEnumerable<TItem>?>? null Child selector that turns the grid into a hierarchical tree grid.
TreeInitiallyExpanded bool false When tree mode is active, controls whether nodes start expanded.
Class string? null Custom CSS class for the root element.
Style string? null Custom inline style for the root element.
Height string? null Height of the scroll viewport, e.g. "480px". Required for virtualization and infinite scrolling.
Striped bool true Renders alternate-row striping.
Hoverable bool true Highlights the row under the pointer.
Bordered bool true Renders cell borders.
ShowHeader bool true Renders the header row.
ShowFooter bool false Renders the footer/aggregate row.
Direction BitDir BitDir.Ltr Text direction (LTR/RTL).
Sortable bool true Enables column sorting by clicking headers.
MultiSort bool true Enables multi-column sorting via Ctrl/⌘+click with priority badges.
Filterable bool false Renders a per-column quick-filter row.
Resizable bool false Enables column resizing by dragging header edges.
Reorderable bool false Enables column reordering via native drag-and-drop.
Groupable bool false Enables grouping via a header button on groupable columns.
ShowToolbar bool false Renders the toolbar area.
ShowColumnChooser bool false Renders a column show/hide chooser in the toolbar.
ShowCsvExport bool false Renders a CSV export link of the current view.
CellNavigation bool false Enables keyboard cell navigation with a roving tabindex.
RowReorderable bool false Enables drag-and-drop row reordering.
OnRowReorder EventCallback<BitDataGridRowReorderEventArgs<TItem>> Raised when a row is dropped onto another row during reordering.
SelectionMode BitDataGridSelectionMode BitDataGridSelectionMode.None How rows can be selected (None/Single/Multiple).
SelectedItems IReadOnlyList<TItem>? null The selected items (supports two-way binding).
SelectedItemsChanged EventCallback<IReadOnlyList<TItem>> Raised when the selection changes.
OnRowClick EventCallback<TItem> Raised when a row is clicked.
OnCellClick EventCallback<BitDataGridCellEventArgs<TItem>> Raised when a data cell is clicked.
OnCellDoubleClick EventCallback<BitDataGridCellEventArgs<TItem>> Raised when a data cell is double-clicked.
OnCellContextMenu EventCallback<BitDataGridCellEventArgs<TItem>> Raised when a data cell is right-clicked.
IsRowSelectionDisabled Func<TItem, bool>? null Predicate returning true when a given row may not be selected.
Pageable bool false Enables paging with a pager UI.
PageSize int 20 The number of rows per page.
PageSizeOptions int[] { 10, 20, 50, 100 } The page-size options offered in the pager dropdown.
PagerPosition BitDataGridPagerPosition BitDataGridPagerPosition.Bottom Where the pager renders relative to the grid.
Virtualize bool false Renders only the visible rows for large datasets. Requires a fixed Height and RowHeight.
RowHeight float 36 Uniform row height in pixels (required when virtualizing).
RowHeightSelector Func<TItem, float>? null Optional per-row height selector (ignored while virtualizing).
Editable bool false Enables inline editing with a command column.
NewItemFactory Func<TItem>? null Factory used by the toolbar Add button to create a new row.
OnRowSave EventCallback<TItem> Raised when an edited row is saved.
OnRowCancel EventCallback<TItem> Raised when an edit is cancelled.
OnRowDelete EventCallback<TItem> Raised when a row is deleted.
OnRowCreate EventCallback<TItem> Raised when a new row is created.
EmptyTemplate RenderFragment? null Custom content rendered when there is no data.
ToolbarTemplate RenderFragment? null Custom content rendered in the toolbar's start area.
DetailTemplate RenderFragment<TItem>? null Expandable master-detail content rendered under a row.
BitDataGrid public members
Name
Type
Default value
Description
RefreshAsync Task Recomputes the data view (filter → sort → group → page) and re-renders the grid.
ClearFiltersAsync Task Clears all active column filters and refreshes.
ClearGroupsAsync Task Removes all active groupings and refreshes.
ExpandAllAsync Task Expands every node in the tree. No-op outside tree mode.
CollapseAllAsync Task Collapses every node in the tree. No-op outside tree mode.
BitDataGridColumn properties
Defines a column inside a BitDataGrid. Place these as child content of the grid.
Name
Type
Default value
Description
Field string? null Name of the property this column is bound to. Supports nested paths ("Address.City").
ColumnId string? null Stable identifier for the column. Defaults to Field.
Title string? null Header text. Defaults to a humanized Field.
Width string? null CSS width, e.g. "120px" or "20%". When null the column shares remaining space.
MinWidth int 60 Minimum width in pixels the column can be resized to.
MaxWidth int? null Maximum width in pixels the column can be resized to.
Sortable bool? null Overrides the grid-level Sortable for this column.
SortDescendingFirst bool false When true, the first click on the header sorts descending instead of ascending.
Filterable bool? null Overrides the grid-level Filterable for this column.
Resizable bool? null Overrides the grid-level Resizable for this column.
Reorderable bool? null Overrides the grid-level Reorderable for this column.
Editable bool? null Overrides the grid-level Editable for this column.
Groupable bool? null Overrides the grid-level Groupable for this column.
Frozen bool false Pins the column to the start edge so it stays visible while scrolling horizontally.
Group string? null Optional header group name. Consecutive columns sharing the same value render under a single spanning header cell.
ColSpan Func<TItem, int?>? null Optional per-row column span.
Visible bool true Whether the column is visible.
Align BitDataGridColumnAlign BitDataGridColumnAlign.Left Horizontal alignment of cell content.
Format string? null A .NET format string applied to the value (e.g. "C2", "yyyy-MM-dd").
DataType BitDataGridColumnDataType BitDataGridColumnDataType.Auto The data type used to pick the editor/filter.
Aggregate BitDataGridAggregateType BitDataGridAggregateType.None The footer/group aggregate function.
AggregateFormat string? null Format string for the aggregate value. Falls back to Format.
HeaderClass string? null Custom CSS class applied to the header cell.
CellClass string? null Custom CSS class applied to each data cell.
Template RenderFragment<TItem>? null Custom rendering for a data cell.
HeaderTemplate RenderFragment? null Custom rendering for the header cell content.
EditTemplate RenderFragment<TItem>? null Custom editor rendered when the row/cell is in edit mode.
FooterTemplate RenderFragment<BitDataGridAggregateResult>? null Custom rendering for the footer/aggregate cell.
BitDataGridReadRequest properties
Describes the data the grid needs from a server-side/infinite source (passed to OnRead/OnLoadMore).
Name
Type
Default value
Description
Skip int 0 Zero-based number of items to skip.
Take int? null Maximum number of items to return (null means all).
Sorts IReadOnlyList<BitDataGridSortDescriptor> [] The active sort descriptors ordered by priority.
Filters IReadOnlyList<BitDataGridFilterDescriptor> [] The active filter descriptors.
CancellationToken CancellationToken A token that is cancelled when the request is superseded by a newer one.
BitDataGridReadResult<TItem> properties
Result returned from a grid's OnRead/OnLoadMore callback.
Name
Type
Default value
Description
Items IReadOnlyList<TItem> The items for the current page/window.
TotalCount int The total number of items matching the current filters (ignored in infinite mode).
BitDataGridCellEventArgs<TItem> properties
Arguments passed to cell-level event callbacks.
Name
Type
Default value
Description
Item TItem The row item.
Column BitDataGridColumn<TItem> The column the cell belongs to.
ColumnId string The column field/identifier.
ColumnTitle string The column's display title.
Value object? null The raw value of the cell.
Mouse MouseEventArgs The underlying browser mouse event.
BitDataGridRowReorderEventArgs<TItem> properties
Arguments raised when a row is reordered via drag-and-drop.
Name
Type
Default value
Description
DraggedItem TItem The dragged row item.
TargetItem TItem The drop-target row item.
FromIndex int? The original index of the dragged item, or null when the bound Items is not an indexable list.
ToIndex int? The destination index, or null when the bound Items is not an indexable list.
BitDataGridSortDescriptor properties
Describes the sort state applied to a single column (found on BitDataGridReadRequest.Sorts).
Name
Type
Default value
Description
ColumnId string The identifier of the column being sorted.
Direction BitDataGridSortDirection BitDataGridSortDirection.Ascending The sort direction.
Priority int 0 Priority for multi-column sorting (1 = primary).
BitDataGridFilterDescriptor properties
Describes a filter applied to a single column (found on BitDataGridReadRequest.Filters).
Name
Type
Default value
Description
ColumnId string The identifier of the column being filtered.
Operator BitDataGridFilterOperator BitDataGridFilterOperator.Unspecified The comparison operator applied to the value.
Value object? null The value compared against the column's cell value.
BitDataGridGroupDescriptor properties
Describes a grouping applied to a column.
Name
Type
Default value
Description
ColumnId string The identifier of the column being grouped.
Direction BitDataGridSortDirection BitDataGridSortDirection.Ascending The sort direction applied to the group keys.
BitDataGridAggregateResult properties
Holds the computed aggregate value for a column footer or group (passed to a column's FooterTemplate).
Name
Type
Default value
Description
ColumnId string The identifier of the aggregated column.
Type BitDataGridAggregateType BitDataGridAggregateType.None The aggregate function that produced the value.
Value object? null The raw aggregate value.
FormattedValue string string.Empty The aggregate value formatted using the column's AggregateFormat/Format.
BitDataGridColumnAlign enum
Name
Value
Description
Left 0
Center 1
Right 2
BitDataGridSortDirection enum
Name
Value
Description
None 0
Ascending 1
Descending 2
BitDataGridSelectionMode enum
Name
Value
Description
None 0
Single 1
Multiple 2
BitDataGridAggregateType enum
Name
Value
Description
None 0
Sum 1
Average 2
Count 3
Min 4
Max 5
BitDataGridPagerPosition enum
Name
Value
Description
Bottom 0
Top 1
TopAndBottom 2
BitDir enum
Name
Value
Description
Ltr 0
Rtl 1
Auto 2
BitDataGridColumnDataType enum
Name
Value
Description
Auto 0
Text 1
Number 2
Boolean 3
Date 4
DateTime 5
Enum 6
BitDataGridFilterOperator enum
Name
Value
Description
Unspecified 0
Contains 1
DoesNotContain 2
StartsWith 3
EndsWith 4
Equals 5
NotEquals 6
GreaterThan 7
GreaterThanOrEqual 8
LessThan 9
LessThanOrEqual 10
IsEmpty 11
IsNotEmpty 12

Feedback

You can give us your feedback through our GitHub repo by filing a new Issue or starting a new Discussion.

Or you can review / edit this page on GitHub.

Or you can review / edit this component on GitHub.
  • On this page