This is a migrated thread and some comments may be shown as answers.

Setting DataFields location in the AutoGeneratingField event

0 Answers 84 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
vk
Top achievements
Rank 1
vk asked on 23 May 2012, 07:37 AM
Hi,

Can I place an autogenerated field to a specified grid row or column which is in the EditItemTemplate?

private void form_AutoGeneratingField(object sender, AutoGeneratingFieldEventArgs e) 
 
     if (e.PropertyName == "ActNumber"
     
         //this doesn't work 
         (e.DataField as DataFormDataField).SetValue(Grid.ColumnProperty, 1);
     }
     else 
     
         e.Cancel = true
     
 }
Tags
DataForm
Asked by
vk
Top achievements
Rank 1
Share this question
or