G
Guest
My custom control includes DataGrid as one of the constituents. I want to be
able to expose this DataGrid as public property "get":
public DataGrid InternalDataGrid
{
get {return MyDataGrid; }
}
At the same time, I don't want to let user change the grid's properties or
content. In other words, if someone gets reference to my DataGrid using
InternalDataGrid property, it should be impossible for him/her to change any
of the grid's properties.
Does anybody know how to do this?
Thank you
able to expose this DataGrid as public property "get":
public DataGrid InternalDataGrid
{
get {return MyDataGrid; }
}
At the same time, I don't want to let user change the grid's properties or
content. In other words, if someone gets reference to my DataGrid using
InternalDataGrid property, it should be impossible for him/her to change any
of the grid's properties.
Does anybody know how to do this?
Thank you