I
Ingvar Nilsen
The DataGrid has a property DataSource.
When assigning a DataSet to this property, the VS.Net IDE inserts the
following code:
DataSource="<%# dataSet1 %>"
This is fine.
Now, I have a custom webcontrol, FooControl, with a property
FooDataSource.
How do I declare this property (in C#) so that the VS.Net IDE inserts:
FooDataSource="<%# dataSet1 %>"
when a DataSet is assigned to this property?
All I get is:
FooDataSource="dataSet1"
and that doesn't work..
When assigning a DataSet to this property, the VS.Net IDE inserts the
following code:
DataSource="<%# dataSet1 %>"
This is fine.
Now, I have a custom webcontrol, FooControl, with a property
FooDataSource.
How do I declare this property (in C#) so that the VS.Net IDE inserts:
FooDataSource="<%# dataSet1 %>"
when a DataSet is assigned to this property?
All I get is:
FooDataSource="dataSet1"
and that doesn't work..