|
-
May 22nd, 2011, 11:57 PM
#1
Inheritance
Could anyone please let me know how I would go about adding a variable into a collection or class that is part of an inherited class
EG: I would like to add a value into the columns collection in the DataGridView.
class MyGrid : DataGridView
{
private String ColumnStyle;
public MyGrid()
{
if (this.Columns.MyDisplayStyle == "Decimal")
{
// My code here
}
}
}
The reason I want to do this is so that I can see if the column needs me to display it in a different way.
Thanks
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
|