ASP.NET的C1GridView控件- var dt=new DataTable();
- dt.Columns.Add("角色总数<br />(1000)");
- var ndr = dt.NewRow();
- ndr["角色总数<br />(1000)"] = "1000<img src="/Images/Chart.png" onclick="OpenDialog('查看创角数数据','/Manage/Player/CreateRoleChart.aspx?gId=1);" class='onlineChart' title="创角数图表" />";
- dt.Rows.Add(ndr);
- //绑定数据表
- var cgv = new C1GridView();
- cgv.ID = "cgv-" + gId + "-" + pId;
- cgv.DataSource = dt;
- cgv.DataBind();
复制代码 |