Ask a Question related to ASP.NET General, Design and Development.
-
Rick Spiewak #1
Finding Grid controls
I have been unable to find an elegant way to navigate to the controls in a
DataGrid in edit mode in order to get the changed values. I end up with a
lot of code like:
e.Item.Controls(5).Controls(0)
to get at a simple textbox, or:
e.Item.Controls(5).Controls(1)
if there is a multiline text box.
No ID's seem to end up on these controls, and I can't seem to find a
generalizable, clean way to access them. Any ideas?
Regards - Rick
Rick Spiewak Guest
-
Finding the values of Dynamic Controls in a Composite Control
Hi Everyone, I've created a Custom Composite Control that creates a number of children -- Hidden Input Fields, to be exact. Because my control... -
A solution to finding controls in datagrid footer...
Hi all, I saw a lots of developers posting question on finding controls in datagrid footer... I have experimenting differents solution and find... -
Controls in certain cells in a grid
I have a grid with several fields an many records. For fields that have a large amount of text in them, I want to show a button that the user can... -
Using controls in Grid
Hi, I am new to Grids with the problem to create runtime created grids that has custom controls on it Can someone please tell me how I apply server... -
Problem finding datagrid in Page.controls collection
You can find datagrid in page by refering the form. Gatagrid is a child control of Form. Here is the code ----------------- Dim ctl As New... -
Re: Finding Grid controls
I don't know if this is OK for you but I sometimes use template columns,
then I name the controls in design mode, and access them this way :
Dim txt as Textbox
txt=ctype(e.Item.fincontrols("txtName"), Textbox)
"Rick Spiewak" <rickspiewak@mindspring.com> wrote in message
news:uSsu0KjUDHA.2112@TK2MSFTNGP10.phx.gbl...> I have been unable to find an elegant way to navigate to the controls in a
> DataGrid in edit mode in order to get the changed values. I end up with a
> lot of code like:
>
> e.Item.Controls(5).Controls(0)
>
> to get at a simple textbox, or:
>
> e.Item.Controls(5).Controls(1)
>
> if there is a multiline text box.
>
> No ID's seem to end up on these controls, and I can't seem to find a
> generalizable, clean way to access them. Any ideas?
>
> Regards - Rick
>
>
Guest



Reply With Quote

