我在对话框中有一个 igx 网格。我使用数组posts
作为网格的数据。这个数组的值可以通过程序改变。如何使用数组的最后一个值更新网格数据posts
?
<igx-dialog #dialog>
<igx-grid #grid1
[emptyGridMessage]="'The grid is empty'"
width="1200px"
[data]="posts"
height="600px"
style="margin: auto"
[primaryKey]="'person'">
<igx-column field="person" dataType="string" header="PersonId"></igx-column>
<igx-column field="name" dataType="string" header="Name"></igx-column>
</igx-grid>
</igx-dialog>
PS我正在使用C#。