|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Access a BoundColumn's value in Update, other than .Cells()?is there any way to get the value stored in the edited column w/o e.Item.Cells(xx).... I would like to be able to rearrange the columns in the DG as necessary, or add new ones. Right now this forces me to recompile & recode. I find it difficult to believe that the DG would be written this way. It seems to force me to use magic numbers to access columns, rather than searching for a specified ID, etc. This way appears to be a nightmare, so either there was a very good reason to make it difficulut to get at, or it was just a big mistake. Am I better off forgetting using BoundColumn and putting in TemplateColumn? I can then search ever column and every control in every column to find the one I expect, when update is pushed? I have 4 columns I display, but only one that I allow editing of 1 ATM. - Andrew Backer I've been told in other places that the only real way to acomplish this
is to use <TemplateColumn> and then do a search for the control i'm interested in via eArgs.Item.FindContro("..."). I was hoping that there was some way to locate a bound column & it's value by *any* other means. Oh well :) - Andrew
e.Item.DataItem
2 Performance Questions Avoid adding a new record on refreshing the browser Underline a whole row for a particular row CancelCommand Event Handler Not Firing Help needed with DataGrid Client-Side Scripting Embedded DropDownList in column. Viewstate question DataGrid & Form on Same Page Post Issue populating a datagrid from an array |
|||||||||||||||||||||||