Gets or sets the object from which the data-bound control retrieves its list of data items. (Inherited from BaseDataBoundControl.)
DataSource: Gets or sets the object from which the data-bound control retrieves its list of data items. (Inherited from BaseDataBoundControl.)
DataSourceID: Gets or sets the ID of the control from which the data-bound control retrieves its list of data items. (Inherited from DataBoundControl.)
If we bind the gird's DataSourceID at Design time, we can only set DataSourceID at runtime again. If we set DataSource at runtime we can set DataSource property again in our code.
Differnce between DataSourceID and DataSource..
AlDeb
MSDN:
Gets or sets the object from which the data-bound control retrieves its list of data items. (Inherited from BaseDataBoundControl.)
DataSource: Gets or sets the object from which the data-bound control retrieves its list of data items. (Inherited from BaseDataBoundControl.)
DataSourceID: Gets or sets the ID of the control from which the data-bound control retrieves its list of data items. (Inherited from DataBoundControl.)
Animesh
I also know that thing..
What I want to know is the difference of that ..
If we bind the gird's DataSourceID at Design time, we can only set DataSourceID at runtime again. If we set DataSource at runtime we can set DataSource property again in our code.