using System.Security.Permissions;
namespace System.Web.DynamicData {
///
/// Interface implemented by controls that can provide data to a DynamicControlParameter's.
/// i.e. the control implmenting this interface can be set as the ControlId of the DynamicControlParameter.
///
public interface IControlParameterTarget {
///
/// The type of data being served by this provider
///
MetaTable Table { get; }
///
/// The column on which the parameter is being applied, if available. e.g. a FilterUserControl
/// can provide it, but a GridView selection cannot.
///
MetaColumn FilteredColumn { get; }
///
/// Get the expression that can be used as a ControlParameter's 'PropertyName'
///
string GetPropertyNameExpression(string columnName);
}
}