Setting DataFields location in the AutoGeneratingField event

1 posts, 0 answers
  1. vk
    vk avatar
    46 posts
    Member since:
    Jul 2012

    Posted 23 May 2012 Link to this post


    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);
             e.Cancel = true
Back to Top