|
发表于 2020-7-9 13:45:01
|
显示全部楼层
HyperLinkColumn hlCol = new HyperLinkColumn();
hlCol.HeaderText = "操作";
hlCol.DataNavigateUrlField = "line_id";
hlCol.DataNavigateUrlFormatString = "meal_cancel_edit.aspx?action=edit&line_id={0}";
hlCol.Text = "修改";
hlCol.DataTextFormatString = "{0:c}";
hlCol.Target = "mainFrame";
DataGrid1.Columns.Add(hlCol); |
|