Hi
After reading ExtJs documentation, my soluce is like this :
<ext:PropertyGrid ID="PropertyGrid" runat="server" >
<!-- Define the grid column --!>
<ColumnModel>
<Columns>
<ext:Column Width="100" Align="Left" Header="Property" Sortable="true" Resizable="true" ></ext:Column>
<ext:Column Width="300" Align="Left" Header="Value" Sortable="true" Resizable="true" ></ext:Column>
</Columns>
</ColumnModel>
</ext:PropertyGrid>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack) InitializePropertyGrid();
}
/// <summary>
///
/// </summary>
private void InitializePropertyGrid()
{
PropertyGridParameter oPropertyGridParameter = null;
for (int i=0; i < 10; i++) {
oPropertyGridParameter = new PropertyGridParameter();
oPropertyGridParameter.Name = "PropertyGridName" + i;
oPropertyGridParameter.Value = "PropertyGridValue" + i;
oPropertyGridParameter.Mode = ParameterMode.Value;
PropertyGrid.Source.Add(oPropertyGridParameter);
}
}
Best regards