Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   edit/update in Datagrid (http://www.velocityreviews.com/forums/t770953-edit-update-in-datagrid.html)

Ignacio Martinez 09-05-2003 03:16 PM

edit/update in Datagrid
 
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



vMike 09-05-2003 11:53 PM

Re: edit/update in Datagrid
 
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" <imartinez@borealsys.com.ar> wrote in message
news:eNwAlB8cDHA.1656@TK2MSFTNGP10.phx.gbl...
> 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
>
>





All times are GMT. The time now is 03:59 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57