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;//设置这个就可以

}

posted @ 2022-05-16 19:01  中雪  阅读(28)  评论(0)    收藏  举报