protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindGridView(); } } protected void gridView_PreRender(object sender, EventArgs e) { if (rbl.SelectedIndex == 1) { GridDecorator.MergeRows(gridView); } } protected void rbl_SelectedIndexChanged(object sender, EventArgs e) { BindGridView(); } void BindGridView() { DataSet dataSet = new DataSet(); dataSet.ReadXml(Server.MapPath("~/App_Data/data1.xml")); gridView.DataSource = dataSet; gridView.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)