|
1 | 1 | ---
|
2 | 2 | layout: post
|
3 | 3 | title: Columns | Grid | ASP.NET MVC | Syncfusion
|
4 | | -description: columns |
| 4 | +description: Learn here all about Columns support in Syncfusion Essential Studio ASP.NET MVC Grid Control, its elements, and more. |
5 | 5 | platform: ejmvc
|
6 | 6 | control: Grid
|
7 | 7 | documentation: ug
|
8 | 8 | ---
|
9 | 9 |
|
10 | | -# Columns |
| 10 | +# Columns Support in ASP.NET MVC Grid |
11 | 11 |
|
12 | 12 | Column definitions are used as the DataSource schema in the grid and it plays vital role in rendering the column values in required format and sorting, filtering, editing based on its type. The `Field` property of the columns is necessary to map the datasource values in grid columns.
|
13 | 13 |
|
@@ -48,7 +48,7 @@ The columns are automatically generated when `Columns` declaration is empty or u
|
48 | 48 |
|
49 | 49 | The following output is displayed as a result of the above code example.
|
50 | 50 |
|
51 | | - |
| 51 | + |
52 | 52 |
|
53 | 53 | ### How to set the `IsPrimaryKey` for auto generated columns when editing is enabled:
|
54 | 54 |
|
@@ -192,7 +192,7 @@ The following code example describes the above behavior.
|
192 | 192 |
|
193 | 193 | The following output is displayed as a result of the above code example.
|
194 | 194 |
|
195 | | - |
| 195 | + |
196 | 196 |
|
197 | 197 | ### Header Text alignment
|
198 | 198 |
|
@@ -241,7 +241,7 @@ The following code example describes the above behavior.
|
241 | 241 |
|
242 | 242 | The following output is displayed as a result of the above code example.
|
243 | 243 |
|
244 | | - |
| 244 | + |
245 | 245 |
|
246 | 246 | ### Header Template
|
247 | 247 |
|
@@ -294,7 +294,7 @@ The following code example describes the above behavior.
|
294 | 294 |
|
295 | 295 | The following output is displayed as a result of the above code example.
|
296 | 296 |
|
297 | | - |
| 297 | + |
298 | 298 |
|
299 | 299 | ## Text alignment
|
300 | 300 |
|
@@ -345,7 +345,7 @@ The following code example describes the above behavior.
|
345 | 345 |
|
346 | 346 | The following output is displayed as a result of the above code example.
|
347 | 347 |
|
348 | | - |
| 348 | + |
349 | 349 |
|
350 | 350 | ## Format
|
351 | 351 |
|
@@ -389,7 +389,7 @@ The following code example describes the above behavior.
|
389 | 389 |
|
390 | 390 | The following output is displayed as a result of the above code example.
|
391 | 391 |
|
392 | | - |
| 392 | + |
393 | 393 |
|
394 | 394 | ## Width
|
395 | 395 |
|
@@ -431,7 +431,7 @@ The following code example describes the above behavior.
|
431 | 431 |
|
432 | 432 | The following output is displayed as a result of the above code example.
|
433 | 433 |
|
434 | | - |
| 434 | + |
435 | 435 |
|
436 | 436 |
|
437 | 437 | ## Resizing
|
@@ -547,7 +547,7 @@ The following code example describes the above behavior.
|
547 | 547 |
|
548 | 548 | The following output is displayed as a result of the above code example.
|
549 | 549 |
|
550 | | - |
| 550 | + |
551 | 551 |
|
552 | 552 |
|
553 | 553 | ## Reorder
|
@@ -591,7 +591,7 @@ The following code example describes the above behavior.
|
591 | 591 |
|
592 | 592 | The following output is displayed as a result of the above code example.
|
593 | 593 |
|
594 | | - |
| 594 | + |
595 | 595 |
|
596 | 596 | ## Visibility
|
597 | 597 |
|
@@ -633,7 +633,7 @@ The following code example describes the above behavior.
|
633 | 633 |
|
634 | 634 | The following output is displayed as a result of the above code example.
|
635 | 635 |
|
636 | | - |
| 636 | + |
637 | 637 |
|
638 | 638 |
|
639 | 639 | ## Unbound Column
|
@@ -689,7 +689,7 @@ The following code example describes the above behavior.
|
689 | 689 |
|
690 | 690 | The following output is displayed as a result of the above code example.
|
691 | 691 |
|
692 | | - |
| 692 | + |
693 | 693 |
|
694 | 694 | ## Column Template
|
695 | 695 |
|
@@ -738,7 +738,7 @@ The following code example describes the above behavior.
|
738 | 738 |
|
739 | 739 | The following output is displayed as a result of the above code example.
|
740 | 740 |
|
741 | | - |
| 741 | + |
742 | 742 |
|
743 | 743 | ## Controlling Grid actions
|
744 | 744 |
|
@@ -825,7 +825,7 @@ The following code example describes the above behavior.
|
825 | 825 |
|
826 | 826 | The following output is displayed as a result of the above code example.
|
827 | 827 |
|
828 | | - |
| 828 | + |
829 | 829 |
|
830 | 830 | ## Expression Column
|
831 | 831 |
|
@@ -872,7 +872,7 @@ The following code example describes the above behavior.
|
872 | 872 |
|
873 | 873 | The following output is displayed as a result of the above code example.
|
874 | 874 |
|
875 | | - |
| 875 | + |
876 | 876 |
|
877 | 877 |
|
878 | 878 | ## Command Column
|
@@ -947,7 +947,7 @@ The following code example describes the above behavior.
|
947 | 947 |
|
948 | 948 | The following output is displayed as a result of the above code example.
|
949 | 949 |
|
950 | | - |
| 950 | + |
951 | 951 |
|
952 | 952 | ### Custom buttons
|
953 | 953 |
|
@@ -1012,7 +1012,7 @@ The following code example describes the above behavior.
|
1012 | 1012 |
|
1013 | 1013 | The following output is displayed as a result of the above code example.
|
1014 | 1014 |
|
1015 | | - |
| 1015 | + |
1016 | 1016 |
|
1017 | 1017 | ## Column Chooser
|
1018 | 1018 |
|
@@ -1055,7 +1055,7 @@ The following code example describes the above behavior.
|
1055 | 1055 |
|
1056 | 1056 | The following output is displayed as a result of the above code example.
|
1057 | 1057 |
|
1058 | | - |
| 1058 | + |
1059 | 1059 |
|
1060 | 1060 | ## Foreign Key Column
|
1061 | 1061 |
|
@@ -1110,7 +1110,7 @@ The following code example describes the above behavior.
|
1110 | 1110 |
|
1111 | 1111 | The following output is displayed as a result of the above code example.
|
1112 | 1112 |
|
1113 | | - |
| 1113 | + |
1114 | 1114 |
|
1115 | 1115 | ## Customize column
|
1116 | 1116 |
|
@@ -1168,7 +1168,7 @@ The following code example describes the above behavior.
|
1168 | 1168 |
|
1169 | 1169 | The following output is displayed as a result of the above code example.
|
1170 | 1170 |
|
1171 | | - |
| 1171 | + |
1172 | 1172 |
|
1173 | 1173 | ## Type
|
1174 | 1174 |
|
@@ -1257,7 +1257,7 @@ The following code example describes the above behavior.
|
1257 | 1257 |
|
1258 | 1258 | The following output is displayed as a result of the above code example.
|
1259 | 1259 |
|
1260 | | - |
| 1260 | + |
1261 | 1261 |
|
1262 | 1262 | ## Column Layout
|
1263 | 1263 |
|
@@ -1302,4 +1302,4 @@ You can set the Grid's columns layout based on either Grid width or its columns
|
1302 | 1302 |
|
1303 | 1303 | The following output is displayed as a result of the above code example.
|
1304 | 1304 |
|
1305 | | - |
| 1305 | + |
0 commit comments