Telerik UI for ASP.NET AJAX component has been used to create a business system. I think there is a merge error in the grid control. Also, please tell us how to apply the same when changing the skin. Please refer to the picture and source code. Version: 2019.2.514.40
- Source Code
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
for (int rowIndex = RadGrid1.Items.Count - 2; rowIndex >= 0; rowIndex--)
{
if (RadGrid1.Items[rowIndex][RadGrid1.Columns[0]].Text == RadGrid1.Items[rowIndex + 1][RadGrid1.Columns[0]].Text)
{
RadGrid1.Items[rowIndex][RadGrid1.Columns[0]].RowSpan = RadGrid1.Items[rowIndex + 1][RadGrid1.Columns[0]].RowSpan < 2 ? 2 : RadGrid1.Items[rowIndex + 1][RadGrid1.Columns[0]].RowSpan + 1;
RadGrid1.Items[rowIndex + 1][RadGrid1.Columns[0]].Visible = false;
//RadGrid1.Items[rowIndex + 1][RadGrid1.Columns[1]].Style.Add("border-left", "solid 1px #d4d4d4");
//==> It appears well on the Office 2007 skin, but it has a border line on the glow skin.
RadGrid1.Items[rowIndex + 1][RadGrid1.Columns[1]].Style.Add("border-left", "solid 1px");
//==> Office2007 Skin has a line, but the color does not match, and Glow skin has a border line.
}
}
}