Hi all,
I want to set the mode of my FormView based on the values the SelectCommand of my SqlDataSource returns. If a certain field contains Null, I want to have Edit mode, and when the field has a value, I want to have ReadOnly.
Apparently I cannot use databinding to set the DefaultMode, so I guess I have to attach code to SqlDataSource1_Selected? But I don't really know how to read out the field values in this way...
Thanks, Peter
I want to set the mode of my FormView based on the values the SelectCommand of my SqlDataSource returns. If a certain field contains Null, I want to have Edit mode, and when the field has a value, I want to have ReadOnly.
Apparently I cannot use databinding to set the DefaultMode, so I guess I have to attach code to SqlDataSource1_Selected? But I don't really know how to read out the field values in this way...
Thanks, Peter