The solution is NOT to have the columns generated for you dynamically and to
create them yourself at design-time.
Uncheck the "Create Columns Automatically At Run Time" checkbox in the
DataGrid's Property Builder
Add a Bound Column and indicate the field name to bind it to (do this for
each column in your grid).
Go back through those bound columns and click the hyperlink at the bottom of
the dialog box to convert the column to a Template Column.
You will now be able to right-click your grid and choose Edit Templates and
pick the column to work on. You will have access to control that is being
used for edit mode and be able to change it as usual.
[quoted text, click to view] "MIGUEL?N." <loichate@euskalnet.net> wrote in message
news:57bc9d40.0411100420.1f762708@posting.google.com...
> Hi all,
>
> I've added an EditCommandColumn to my dinamically created Datagrid.
> All works pretty well, events fire in the correct way and so on. My
> problem is when I click the "Edit" link: All row is made editable for
> me, but the textboxes are enormous, too big. As a consequence of those
> strange textboxes, the columns are also bigger in width and finally at
> the bottom of my page appears the horizontal scroll, which I must
> avoid.
>
> What's the solution for customizing this Edition Mode? I've tried with
> "EditItemStyle", applying a style to this edition mode, but there is
> no way of achieving the desired result.
>
> I've heard about TemplateColumns but I'm quite newbie to them.
>
> Can someone give me a solution to make this textboxes smaller and not
> to show the horizontal scroll? Or can someone advise me about
> Templatecolumns (If I should use them in this particular case)?
>
> Thanks in advance.