dynamically use the properties of datasource

hi,

i wan to use the properties of the datasource using code…so where should i write the code means in which method of the datasource?

You should be able to access the datasouce properties anywhere on the form. Use DatasourceName.FieldName to access the data on the current record or DataSourceName_DS.methodName() to access the different methods that exist in relation to the datasource.

example:

if(!DataSourceName.FieldName)

{

DataSourceName_DS.allowEdit(false);

}

This code changes the property of allowEdit on the datasource on the form if the value of FieldName is not null.

List of datasource properties:

http://msdn.microsoft.com/en-us/library/aa676742.aspx

thnx bro ,

but i wan to apply this on the joinsource and the linktype property.

ex:

datasource1.joinsource(datasource2);

datasource1.linktype(joinmode::innerjoin);

bt this is not working .