Thanks for the example project, now I see where the problem might be. It is not connected with inheritance, it is connected with data binding I think.
private
void
radButtonFillNodes_Click(
object
sender, EventArgs e)
{
DataTable table =
new
DataTable();
table.Columns.Add(
"ID"
,
typeof
(
int
));
table.Columns.Add(
"ParentID"
,
typeof
(
int
));
table.Columns.Add(
"Name"
,
typeof
(
string
));
table.Columns.Add(
"Title"
,
typeof
(
string
));
table.Columns.Add(
"Icon"
,
typeof
(Image));
table.Columns.Add(
"IsNew"
,
typeof
(
bool
));
table.Columns.Add(
"NewItemCount"
,
typeof
(
int
));
table.Columns.Add(
"IsImportant"
,
typeof
(
bool
));
table.Columns.Add(
"HasFlag"
,
typeof
(
bool
));
table.Rows.Add(0,
null
,
"Personal Folders"
,
null
,
null
);
table.Rows.Add(1, 0,
"Deleted Items"
,
null
,
null
,
false
, 1);
table.Rows.Add(2, 0,
"Drafts"
,
null
,
null
);
table.Rows.Add(3, 0,
"Inbox"
,
null
,
null
,
false
, 3);
table.Rows.Add(4, 0,
"Junk E-mails"
,
null
,
null
);
table.Rows.Add(5, 0,
"Outbox"
,
null
,
null
);
table.Rows.Add(6, 0,
"Send Items"
,
null
,
null
);
table.Rows.Add(7, 0,
"Search Folder"
,
null
,
null
);
table.Rows.Add(8, 1,
"Adam Smith"
,
"You`ve got to see this!"
,
null
,
true
);
table.Rows.Add(9, 3,
"Lewis Clark"
,
"This is extremely urgent"
,
null
,
true
,
null
,
true
);
table.Rows.Add(10, 3,
"Tomas Brown"
,
"Need your help with this article"
,
null
,
false
,
null
,
false
,
true
);
table.Rows.Add(11, 3,
"Jeff Patel"
,
"Please, check this our and report by Tomorow!"
,
null
,
true
);
table.Rows.Add(12, 3,
"Smith Jones"
,
"Seend this yet?"
,
null
,
true
);
table.Rows.Add(13, 3,
"Denis Cooper"
,
"Great new tool"
,
null
,
false
);
table.Rows.Add(14, 3,
"Jackie Turner"
,
"Team Building Session - All Hands"
,
null
,
false
,
null
,
true
);
this
.signalTreeView1.DataSource = table;
this
.signalTreeView1.DisplayMember =
"Name"
;
this
.signalTreeView1.ChildMember =
"ID"
;
this
.signalTreeView1.ParentMember =
"ParentID"
;
}
private
void
radButtonClearChildren_Click(
object
sender, EventArgs e)
{
this
.signalTreeView1.Nodes[0].Nodes[2].Nodes.Clear();
}
So when I use DataTable with DataBinding hiding is not working. Do you have any idea why?