|
-
May 16th, 2011, 09:10 AM
#1
'hide' DataBind method
Hi all,
I'm creating a custom control. To show the correct data in this control, I need to set several properties before calling the DataBind method. To prevent that any properties are forgotten, or that someone else doesn't know what properties to set, I want to pass all this information to the databind method.
Code:
public void DataBind(int value, string something, double anotherValue) {
//..
}
This approach works fine so far, but code completion still shows the original DataBind (+1 overload). I tried to override this method, and make it private, but this results in a compiler error ('virtual or abstract members cannot be private').
Is this possible?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|