2 * Namespace: System.Web.UI.WebControls
\r
3 * Class: BaseDataList
\r
5 * Author: Gaurav Vaish
\r
6 * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>
\r
9 * (C) Gaurav Vaish (2001)
\r
14 using System.Web.UI;
\r
16 namespace System.Web.UI.WebControls
\r
18 public abstract class BaseDataList: WebControl
\r
21 private int cellPadding = -1;
\r
22 private int cellSpacing = 0;
\r
23 private object dataSource = null;
\r
24 private string dataKeyField = String.Empty;
\r
25 private DataKeyCollection dataKeys; // TODO: From where do get the values into it?
\r
26 private string dataMember = String.Empty;
\r
27 private GridLines gridLines = GridLines.Both;
\r
28 private HorizontalAlign hAlign = HorizontalAlign.NotSet;
\r
30 public BaseDataList()
\r
35 public static bool IsBindableType(Type type)
\r
37 //TODO: To see what has to be here
\r
38 return false; //for the time being, to be able to make it compile
\r
41 public virtual int CellPadding
\r
49 cellPadding = value;
\r
53 public virtual int CellSpacing
\r
61 cellSpacing = value;
\r
65 public virtual string DataKeyField
\r
69 return dataKeyField;
\r
73 dataKeyField = value;
\r
77 public DataKeysCollection DataKeys
\r
85 public string DataMember
\r
97 public virtual object DataSource
\r
105 dataSource = value;
\r
109 public virtual GridLines GridLines
\r
121 public virtual HorizontalAlign HorizontalAlign
\r
133 public override void DataBind()
\r
135 // TODO: have to write the implementation
\r
136 // I am not sure of whether it will be of any use here since
\r
137 // I am an abstract class, and have no identity of myself.
\r
140 //TODO: Check - where are the following abstract methods?
\r
142 * CreateControlHierarchy(bool)
\r
143 * PrepareControlHierarchy()
\r