UtraGrid主从表,父子表,当依次展开子表数据后,主表前面的加号隐藏
private void grid1_AfterRowExpanded(object sender, RowEventArgs e)
{
if (e.Row == null)
{
return;
}
if (e.Row.Band.Index == 0 && !e.Row.HasParent() && !e.Row.HasChild())
{
//根据关键字查子表数据
}
e.Row.ExpansionIndicator = ShowExpansionIndicator.Always;//设置这个就可以
}

浙公网安备 33010602011771号