Skip to content

Commit d08de28

Browse files
author
Marin Bratanov
committed
fixed slug link to fix build
1 parent 33657c5 commit d08de28

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

controls/grid/defining-structure/creating-a-radgrid-programmatically.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ This help article describes two options for creating a **RadGrid** instance dyna
1818

1919
* You can create the **RadGrid** entirely in the code-behind.
2020

21-
>Note
22-
This article demonstrates how to create and configure the RadGrid control programmatically on the code-behind, given that the data source structure will remain the same. If you want to dynamically change the columns of the grid depending on user selection or some dynamic condition (remove or add columns with different DataFields than the initial loaded structure), this might mess up the ViewState. For this scenario, please refer to the next [Changing the Grid Structure Dynamically on Postback]({%grid/defining-structure/changing-the-grid-structure-dynamically-on-postback%}) article.
21+
>note This article demonstrates how to create and configure the RadGrid control programmatically on the code-behind, given that the data source structure will remain the same. If you want to dynamically change the columns of the grid depending on user selection or some dynamic condition (remove or add columns with different DataFields than the initial loaded structure), this might mess up the ViewState. For this scenario, please refer to the next [Changing the Grid Structure Dynamically on Postback]({%slug grid/defining-structure/changing-the-grid-structure-dynamically-on-postback %}) article.
2322
2423
When defining the structure of a hierarchical grid (by either method), you should follow these rules:
2524

@@ -33,8 +32,10 @@ When defining the structure of a hierarchical grid (by either method), you shoul
3332

3433
* If you are not using declarative data sources, add event handlers for the **NeedDataSource** and **DetailTableDataBind** events. In the **DetailTableDataBind** event handler, you can determine which data source should be related to the current table view by checking whether the **GetDataKeyValue** method of the detail table's **ParentItem** returns a value.
3534

35+
3636
>note Hierarchical structure is not supported with simple data binding (calling **DataBind** ()).
37-
>
37+
38+
3839

3940
<!--* **Dynamically defining the structure of a statically-declared grid http://www.telerik.com/help/aspnet-ajax/grid-programmatic-creation.html#Section1_self**
4041

0 commit comments

Comments
 (0)