title: Dynamic resize gridview edit template based on size of Item template
body: <p>I have a GridView that displays data in up to 30 columns. Sometimes this has the effect that the gridview expand to a width that requre a horizontal scrollbar but not always. The length of the data in the columns also vary and I don't want to set a specific width, it's nice that the grid is small if half of the columns are empty.</p>
  
  <p>The problem is when I enter edit mode, labels gets replaced by textboxes and those take up more width and the whole table resizes itself. </p>
  
  <p>Is there any way I can keep the item template and it's labels without a fixed size but at the same time always make sure the edit template will have the same size. </p>
  
  <p>I was thinking about something like this:</p>
  
  <p>On "enter edit mode event"
       EditTemplateTextBox.Width = CurrentItemTemplate.Width;</p>