Binding Default Values To Cols

  • I want to create a new column with a default value. I create the column object, and the default object, but cannot bind the default object to the column before the column is added. The only way I can see of doing this is to add the column with AllowNulls=True, then bind the default, and then issue an update on the column to update existing records.

    This must be wrong.

    Can anyone help me??

    Thanks heaps.

  • Did you add the defualt object you created to the defualts collection first? Any reason why you would not just set the defualt property in the column object (oCol.DRIDefault.Text)? If this doesn't help, post your code so we have a better idea of what you are doing.

    Thanks,

    Sean

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply