![]() |
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 |
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.