当前位置: 首页 > 工具软件 > MasterView > 使用案例 >

How to provide the capability to expand empty rows of a master view to be able to add child rows

令狐嘉禧
2023-12-01


To be able to expand empty rows, just enable the master view's OptionsDetail.AllowExpandEmptyDetails option. In this case, empty master rows will display a grayed out expand button, which can be clicked to expand a row. If you want this button not to be grayed out, please handle the master view's GridView.MasterRowEmpty event in the following manner:

void gridView1_MasterRowEmpty(object sender, MasterRowEmptyEventArgs e) {
    e.IsEmpty = false;
}

 类似资料:

相关阅读

相关文章

相关问答