0
우리는 웹 애플리케이션에 AspXGridView devXgrid를 사용하고 있습니다. 표의 열에 대해 두 개의 값 (id, value)을 할당해야합니다. 어떻게해야합니까?그리드의 한 열에 대해 두 개의 값을 갖는 방법
감사합니다. P.Gopalakrishnan.
우리는 웹 애플리케이션에 AspXGridView devXgrid를 사용하고 있습니다. 표의 열에 대해 두 개의 값 (id, value)을 할당해야합니다. 어떻게해야합니까?그리드의 한 열에 대해 두 개의 값을 갖는 방법
감사합니다. P.Gopalakrishnan.
이렇게하면 웜을 열 수 있습니다. 정렬, 그룹화 및/또는 필터링이 활성화 된 경우 어떻게 작동합니까?
는 ... 여기에 하나가 (다른 문제를 무시)이다,이 작업을 수행하는 방법은 무리가있다
protected void ASPxGridView1_Init(object sender, EventArgs e) {
// Creates a column, customizes its settings and appends it to the Columns collection;
GridViewDataTextColumn colTotal = new GridViewDataTextColumn();
colTotal.Caption = "IdValue";
colTotal.FieldName = "IdValue";
colTotal.UnboundType = DevExpress.Data.UnboundColumnType.String;
colTotal.VisibleIndex = ASPxGridView1.VisibleColumns.Count;
ASPxGridView1.Columns.Add(colTotal);
}
// Populates the unbound column.
protected void ASPxGridView1_CustomUnboundColumnData(object sender, ASPxGridViewColumnDataEventArgs e) {
if (e.Column.FieldName == "IdValue") {
e.Value = e.GetListSourceFieldValue("Id") + " " + e.GetListSourceFieldValue("Value");
}
}
http://devexpress.com/Help/?document=ASPxGridView/CustomDocument3770.htm&levelup=true