摘要:
方法一:效果截图,第一行是通过代码添加的,第二行GridView本身的表头在GridView的RowCreated事件中写添加代码protected void SmartGridView1_RowCreated(object sender, GridViewRowEventArgs e){if (e.Row.RowType == DataControlRowType.Header){GridViewRow rowHeader = new GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Normal);//表头行T 阅读全文