Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Amit Chudasama #1
How to find control dynamically added in the header
Pls any body tell me how can i find the control added in the following way :
Protected Overrides Sub OnItemDataBound(ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs)
Dim i As Integer
If e.Item.ItemType = WebControls.ListItemType.Header Then
For i = 0 To e.Item.Cells.Count - 1
e.Item.Cells(i).Text += "<BR><Input type=text class=FilterTextBox
runat=server id='txtcontrol" & i & "' ></input>"
Next
End If
End Sub
Now Tell me how can i find the txtcontrol(1...n) added in the header of each
column in code behind.
Amit Chudasama Guest
-
Managing ViewState of a dynamically created Custom Composite Server Control -(where the original is also dynamically created)
Ok here's my scenario. I have a Custom Composite Server Control (CCSC) consisting of a TextBox, Button & Panel. (And some other code - which I... -
Handle Event of Dynamically Added User Control
Hi There! How to handle the events of a dynamically added user control? e.g. I have following code... Dim myUserControl as Object =... -
Add header text dynamically in a datagrid with templatecolumns?
Hello, I have a dg, which uses templatecolumns. Now I would like to assing the header text of these columns, with the names I have in my... -
Determine if custom control is being added dynamically?
Hi, Is it possible to determine in your custom control code if it is being added to the control hierarchy through page parsing or being added... -
Dynamically Added TextBoxes
Is there anyway to get the value of a dynamically added textbox that was added after OnInit in Page_Load on Postback? Page_Load Dim tb As... -
Raghavendra T V #2
Re: How to find control dynamically added in the header
Hi Amit,
I thinkyou can try
e.Item.FindControlByID [ or name] and mention the TextBox ID [ or name]
Thanks
Raghavendra
"Amit Chudasama" <amitc@vmfsoft.com> wrote in message
news:OgLA$DmiEHA.3476@tk2msftngp13.phx.gbl...:> Pls any body tell me how can i find the control added in the following wayeach>
> Protected Overrides Sub OnItemDataBound(ByVal e As
> System.Web.UI.WebControls.DataGridItemEventArgs)
>
> Dim i As Integer
>
> If e.Item.ItemType = WebControls.ListItemType.Header Then
>
> For i = 0 To e.Item.Cells.Count - 1
>
> e.Item.Cells(i).Text += "<BR><Input type=text class=FilterTextBox
> runat=server id='txtcontrol" & i & "' ></input>"
>
> Next
>
> End If
>
> End Sub
>
> Now Tell me how can i find the txtcontrol(1...n) added in the header of> column in code behind.
>
>
>
>
>
>
Raghavendra T V Guest



Reply With Quote

