This example creates a custom grid control with the DetailTabStyle
event. Handle this event to disable certain detail tabs based on a specific condition:
private void myGridView1_DetailTabStyle(object sender, DetailTabStyleEventArgs e) {
if (e.RowHandle % 2 == 0 && e.RelationIndex == 1)
e.Enabled = false;
}
- DetailTabStyleEventArgs.cs (VB: DetailTabStyleEventArgs.vb)
- Main.cs (VB: Main.vb)
- MyGrid.cs (VB: MyGrid.vb)
(you will be redirected to DevExpress.com to submit your response)