Try something like this (snip). you will have to play with it a bit as one
box seems to effect the size of the other.
Public Sub Display2_ItemDataBound(sender As Object, e As
DataGridItemEventArgs)
if display2.EditItemIndex > -1 then
if display2.EditItemIndex = e.item.itemindex then
ctype(e.Item.Cells(3).controls(0),textbox).Width = Unit.Pixel(35)
ctype(e.Item.Cells(6).controls(0),textbox).Width = Unit.Pixel(45)
ctype(e.Item.Cells(7).controls(0),textbox).Width = Unit.Pixel(35)
.....
"Ignacio Martinez" <> wrote in message
news:...
> Hey group!
> I created a Datagrid with Edit/update commands, and it works great, but I
> need to change the size of the textbox's that are shwon on my non-readonly
> columns.
> Is this possible? and Is it possible to get a binded dropdownlist instead
of
> a textbox on edit mode?
>
> thanx in advance!
> Ignacio
>
>
|