473,788 Members | 2,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dropdownlist in Datagrid

I've seen articles on GotDotNet and elsewhere on how to put a ddl in a
datagrid, and have been able to implement this technique. For a new item,
among the datagrid columns there is the one ddl for the user to choose an
account description, and when the user saves, then the value is saved and
displayed in a bound column in the datagrid. So far so good.

The problem is when the user edits the line. The ddl is refreshed with all
of the choices as a result of the databind method in the grid's editcommand
event, but I need to synchronize the user's current choice that is in the
bound column and display that choice in the ddl. I can retrieve the value in
the bound column with no problem, but when I try to find the the ddl using
FindControl, it returns nothing.

Any help would be greatly appreciated!

Here is some code:

'This event occurs immediately when the user clicks on the Edit button in
the grid.
Private Sub grdLineItems_Ed itCommand(ByVal source As Object, ByVal e As
System.Web.UI.W ebControls.Data GridCommandEven tArgs) Handles
grdLineItems.Ed itCommand

Dim ds As DataSet
Dim dv As DataView

Try
ds = CType(Session(" DSNewLineItems" ), DataSet)
dv = ds.Tables(0).De faultView

With grdLineItems
.EditItemIndex = e.Item.ItemInde x
.DataSource = dv
.DataBind() 'this triggers GetBillTos procedure below
End With

Dim UsersChoice As String
'Get the selected BillToID in the bound column to synchronize
with the ddl
UsersChoice = e.Item.Cells(6) .Text 'this works fine

'Since we're editing, show the BillTo dropdown list
grdLineItems.Co lumns(7).Visibl e = True

'Show the user's current selection in the ddl
Dim ddl As DropDownList
Dim TempValue As String

'This line does not find the control - returns Nothing
ddl = E.Item.FindCont rol("ddlBillTos ")
'...so this line throws an error - object not set
ddl.SelectedIte m.Value = UsersChoice

Session("POAddM ode") = False
lnkAdd.Visible = False

Catch ex As Exception
lblError.Text = ex.Message
End Try

End Sub

Protected Function GetBillTos(ByVa l DeptID As Integer) As DataTable
'This function returns all of the account numbers that the user can
select from, based on his/her department.

Dim ds As DataSet
Dim strSQL As String = "up_select_parm _billtos"
Dim strConn As String = Session("Connec tStringSQL").To String
'Dim NewConnection As SqlConnection = New SqlConnection(s trConn)
'Dim SqlDa As SqlDataAdapter

Try
Dim paramDeptID As New SqlParameter("@ DeptID", SqlDbType.Int, 4)
paramDeptID.Val ue = DeptID
ds = DataHandlerSqlC lient.ExecuteDa taset(strConn,
CommandType.Sto redProcedure, strSQL, paramDeptID)
Return ds.Tables(0)

Catch ex As Exception
Throw ex
End Try

End Function

Here is my html code for the bound column:
<asp:BoundColum n DataField="Bill ToID" ReadOnly="True" HeaderText="Acc ount #">
<HeaderStyle Font-Bold="True" Wrap="False" HorizontalAlign ="Left"
ForeColor="Whit e"></HeaderStyle>
<ItemStyle Wrap="False" HorizontalAlign ="Left"></ItemStyle>
</asp:BoundColumn >

'Here is my html for the ddl
<asp:TemplateCo lumn Visible="False" HeaderText="Bil l to Account">
<HeaderStyle Font-Bold="True" Wrap="False" HorizontalAlign ="Left"
ForeColor="Whit e"></HeaderStyle>
<ItemStyle Wrap="False" HorizontalAlign ="Left"></ItemStyle>
<EditItemTempla te>
'This is where the ddl is populated:
<asp:DropDownLi st id=ddlBillTos runat="server" DataValueField= "BillToID"
DataTextField=" BillToDesc" DataSource='<%#
GetBillTos(cint (Session("DeptI D"))) %>'>
</asp:DropDownLis t>
</EditItemTemplat e>
</asp:TemplateCol umn>
Nov 18 '05 #1
3 1818
Take a look at this:

Private Sub dg_ItemDataBoun d(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles
dg.ItemDataBoun d

Dim u As New utils

' in EDIT MODE, make sure cbo have correct selected item (index)
If e.Item.ItemType = ListItemType.Ed itItem Then
Dim currValue As String = ""
Dim myDropDown As DropDownList
Dim idx As Integer

' cboGroup
currValue = CType(e.Item.Da taItem("Employe eGroup"), String)
myDropDown = CType(e.Item.Fi ndControl("cboE mployeeGroup"),
DropDownList)
idx =
myDropDown.Item s.IndexOf(myDro pDown.Items.Fin dByText(currVal ue))
myDropDown.Sele ctedIndex = idx


On Tue, 30 Nov 2004 11:43:05 -0800, "Richard"
<Ri*****@discus sions.microsoft .com> wrote:
I've seen articles on GotDotNet and elsewhere on how to put a ddl in a
datagrid, and have been able to implement this technique. For a new item,
among the datagrid columns there is the one ddl for the user to choose an
account description, and when the user saves, then the value is saved and
displayed in a bound column in the datagrid. So far so good.

The problem is when the user edits the line. The ddl is refreshed with all
of the choices as a result of the databind method in the grid's editcommand
event, but I need to synchronize the user's current choice that is in the
bound column and display that choice in the ddl. I can retrieve the value in
the bound column with no problem, but when I try to find the the ddl using
FindControl, it returns nothing.

Any help would be greatly appreciated!

Here is some code:

'This event occurs immediately when the user clicks on the Edit button in
the grid.
Private Sub grdLineItems_Ed itCommand(ByVal source As Object, ByVal e As
System.Web.UI. WebControls.Dat aGridCommandEve ntArgs) Handles
grdLineItems.E ditCommand

Dim ds As DataSet
Dim dv As DataView

Try
ds = CType(Session(" DSNewLineItems" ), DataSet)
dv = ds.Tables(0).De faultView

With grdLineItems
.EditItemIndex = e.Item.ItemInde x
.DataSource = dv
.DataBind() 'this triggers GetBillTos procedure below
End With

Dim UsersChoice As String
'Get the selected BillToID in the bound column to synchronize
with the ddl
UsersChoice = e.Item.Cells(6) .Text 'this works fine

'Since we're editing, show the BillTo dropdown list
grdLineItems.Co lumns(7).Visibl e = True

'Show the user's current selection in the ddl
Dim ddl As DropDownList
Dim TempValue As String

'This line does not find the control - returns Nothing
ddl = E.Item.FindCont rol("ddlBillTos ")
'...so this line throws an error - object not set
ddl.SelectedIte m.Value = UsersChoice

Session("POAddM ode") = False
lnkAdd.Visible = False

Catch ex As Exception
lblError.Text = ex.Message
End Try

End Sub

Protected Function GetBillTos(ByVa l DeptID As Integer) As DataTable
'This function returns all of the account numbers that the user can
select from, based on his/her department.

Dim ds As DataSet
Dim strSQL As String = "up_select_parm _billtos"
Dim strConn As String = Session("Connec tStringSQL").To String
'Dim NewConnection As SqlConnection = New SqlConnection(s trConn)
'Dim SqlDa As SqlDataAdapter

Try
Dim paramDeptID As New SqlParameter("@ DeptID", SqlDbType.Int, 4)
paramDeptID.Val ue = DeptID
ds = DataHandlerSqlC lient.ExecuteDa taset(strConn,
CommandType.St oredProcedure, strSQL, paramDeptID)
Return ds.Tables(0)

Catch ex As Exception
Throw ex
End Try

End Function

Here is my html code for the bound column:
<asp:BoundColu mn DataField="Bill ToID" ReadOnly="True" HeaderText="Acc ount #">
<HeaderStyle Font-Bold="True" Wrap="False" HorizontalAlign ="Left"
ForeColor="Whi te"></HeaderStyle>
<ItemStyle Wrap="False" HorizontalAlign ="Left"></ItemStyle>
</asp:BoundColumn >

'Here is my html for the ddl
<asp:TemplateC olumn Visible="False" HeaderText="Bil l to Account">
<HeaderStyle Font-Bold="True" Wrap="False" HorizontalAlign ="Left"
ForeColor="Whi te"></HeaderStyle>
<ItemStyle Wrap="False" HorizontalAlign ="Left"></ItemStyle>
<EditItemTempl ate>
'This is where the ddl is populated:
<asp:DropDownL ist id=ddlBillTos runat="server" DataValueField= "BillToID"
DataTextField= "BillToDesc " DataSource='<%#
GetBillTos(cin t(Session("Dept ID"))) %>'>
</asp:DropDownLis t>
</EditItemTemplat e>
</asp:TemplateCol umn>


Nov 18 '05 #2
Thank you hansiman! This was what I needed!

"hansiman" wrote:
Take a look at this:

Private Sub dg_ItemDataBoun d(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles
dg.ItemDataBoun d

Dim u As New utils

' in EDIT MODE, make sure cbo have correct selected item (index)
If e.Item.ItemType = ListItemType.Ed itItem Then
Dim currValue As String = ""
Dim myDropDown As DropDownList
Dim idx As Integer

' cboGroup
currValue = CType(e.Item.Da taItem("Employe eGroup"), String)
myDropDown = CType(e.Item.Fi ndControl("cboE mployeeGroup"),
DropDownList)
idx =
myDropDown.Item s.IndexOf(myDro pDown.Items.Fin dByText(currVal ue))
myDropDown.Sele ctedIndex = idx


On Tue, 30 Nov 2004 11:43:05 -0800, "Richard"
<Ri*****@discus sions.microsoft .com> wrote:
I've seen articles on GotDotNet and elsewhere on how to put a ddl in a
datagrid, and have been able to implement this technique. For a new item,
among the datagrid columns there is the one ddl for the user to choose an
account description, and when the user saves, then the value is saved and
displayed in a bound column in the datagrid. So far so good.

The problem is when the user edits the line. The ddl is refreshed with all
of the choices as a result of the databind method in the grid's editcommand
event, but I need to synchronize the user's current choice that is in the
bound column and display that choice in the ddl. I can retrieve the value in
the bound column with no problem, but when I try to find the the ddl using
FindControl, it returns nothing.

Any help would be greatly appreciated!

Here is some code:

'This event occurs immediately when the user clicks on the Edit button in
the grid.
Private Sub grdLineItems_Ed itCommand(ByVal source As Object, ByVal e As
System.Web.UI. WebControls.Dat aGridCommandEve ntArgs) Handles
grdLineItems.E ditCommand

Dim ds As DataSet
Dim dv As DataView

Try
ds = CType(Session(" DSNewLineItems" ), DataSet)
dv = ds.Tables(0).De faultView

With grdLineItems
.EditItemIndex = e.Item.ItemInde x
.DataSource = dv
.DataBind() 'this triggers GetBillTos procedure below
End With

Dim UsersChoice As String
'Get the selected BillToID in the bound column to synchronize
with the ddl
UsersChoice = e.Item.Cells(6) .Text 'this works fine

'Since we're editing, show the BillTo dropdown list
grdLineItems.Co lumns(7).Visibl e = True

'Show the user's current selection in the ddl
Dim ddl As DropDownList
Dim TempValue As String

'This line does not find the control - returns Nothing
ddl = E.Item.FindCont rol("ddlBillTos ")
'...so this line throws an error - object not set
ddl.SelectedIte m.Value = UsersChoice

Session("POAddM ode") = False
lnkAdd.Visible = False

Catch ex As Exception
lblError.Text = ex.Message
End Try

End Sub

Protected Function GetBillTos(ByVa l DeptID As Integer) As DataTable
'This function returns all of the account numbers that the user can
select from, based on his/her department.

Dim ds As DataSet
Dim strSQL As String = "up_select_parm _billtos"
Dim strConn As String = Session("Connec tStringSQL").To String
'Dim NewConnection As SqlConnection = New SqlConnection(s trConn)
'Dim SqlDa As SqlDataAdapter

Try
Dim paramDeptID As New SqlParameter("@ DeptID", SqlDbType.Int, 4)
paramDeptID.Val ue = DeptID
ds = DataHandlerSqlC lient.ExecuteDa taset(strConn,
CommandType.St oredProcedure, strSQL, paramDeptID)
Return ds.Tables(0)

Catch ex As Exception
Throw ex
End Try

End Function

Here is my html code for the bound column:
<asp:BoundColu mn DataField="Bill ToID" ReadOnly="True" HeaderText="Acc ount #">
<HeaderStyle Font-Bold="True" Wrap="False" HorizontalAlign ="Left"
ForeColor="Whi te"></HeaderStyle>
<ItemStyle Wrap="False" HorizontalAlign ="Left"></ItemStyle>
</asp:BoundColumn >

'Here is my html for the ddl
<asp:TemplateC olumn Visible="False" HeaderText="Bil l to Account">
<HeaderStyle Font-Bold="True" Wrap="False" HorizontalAlign ="Left"
ForeColor="Whi te"></HeaderStyle>
<ItemStyle Wrap="False" HorizontalAlign ="Left"></ItemStyle>
<EditItemTempl ate>
'This is where the ddl is populated:
<asp:DropDownL ist id=ddlBillTos runat="server" DataValueField= "BillToID"
DataTextField= "BillToDesc " DataSource='<%#
GetBillTos(cin t(Session("Dept ID"))) %>'>
</asp:DropDownLis t>
</EditItemTemplat e>
</asp:TemplateCol umn>


Nov 18 '05 #3
Another solution is to use the Edit Item Template and the SelectedIndex
property and bind that to a function that gives it the proper index to set
like so:
<EditItemTempla te>
<asp:DropDownLi st runat="server" DataSource='<%# GetDivisions() %>'
DataTextField=" Division" DataValueField= "DivisionID " ID="ddlEditDivi sions"
SelectedIndex=' <%#GetDivIdx(Da taBinder.Eval(C ontainer.DataIt em,"Division")) %
'/> </EditItemTemplat e>

"Richard" <Ri*****@discus sions.microsoft .com> wrote in message
news:74******** *************** ***********@mic rosoft.com... I've seen articles on GotDotNet and elsewhere on how to put a ddl in a
datagrid, and have been able to implement this technique. For a new item,
among the datagrid columns there is the one ddl for the user to choose an
account description, and when the user saves, then the value is saved and
displayed in a bound column in the datagrid. So far so good.

The problem is when the user edits the line. The ddl is refreshed with all
of the choices as a result of the databind method in the grid's editcommand event, but I need to synchronize the user's current choice that is in the
bound column and display that choice in the ddl. I can retrieve the value in the bound column with no problem, but when I try to find the the ddl using
FindControl, it returns nothing.

Any help would be greatly appreciated!

Here is some code:

'This event occurs immediately when the user clicks on the Edit button in
the grid.
Private Sub grdLineItems_Ed itCommand(ByVal source As Object, ByVal e As System.Web.UI.W ebControls.Data GridCommandEven tArgs) Handles
grdLineItems.Ed itCommand

Dim ds As DataSet
Dim dv As DataView

Try
ds = CType(Session(" DSNewLineItems" ), DataSet)
dv = ds.Tables(0).De faultView

With grdLineItems
.EditItemIndex = e.Item.ItemInde x
.DataSource = dv
.DataBind() 'this triggers GetBillTos procedure below
End With

Dim UsersChoice As String
'Get the selected BillToID in the bound column to synchronize
with the ddl
UsersChoice = e.Item.Cells(6) .Text 'this works fine

'Since we're editing, show the BillTo dropdown list
grdLineItems.Co lumns(7).Visibl e = True

'Show the user's current selection in the ddl
Dim ddl As DropDownList
Dim TempValue As String

'This line does not find the control - returns Nothing
ddl = E.Item.FindCont rol("ddlBillTos ")
'...so this line throws an error - object not set
ddl.SelectedIte m.Value = UsersChoice

Session("POAddM ode") = False
lnkAdd.Visible = False

Catch ex As Exception
lblError.Text = ex.Message
End Try

End Sub

Protected Function GetBillTos(ByVa l DeptID As Integer) As DataTable
'This function returns all of the account numbers that the user can
select from, based on his/her department.

Dim ds As DataSet
Dim strSQL As String = "up_select_parm _billtos"
Dim strConn As String = Session("Connec tStringSQL").To String
'Dim NewConnection As SqlConnection = New SqlConnection(s trConn)
'Dim SqlDa As SqlDataAdapter

Try
Dim paramDeptID As New SqlParameter("@ DeptID", SqlDbType.Int, 4) paramDeptID.Val ue = DeptID
ds = DataHandlerSqlC lient.ExecuteDa taset(strConn,
CommandType.Sto redProcedure, strSQL, paramDeptID)
Return ds.Tables(0)

Catch ex As Exception
Throw ex
End Try

End Function

Here is my html code for the bound column:
<asp:BoundColum n DataField="Bill ToID" ReadOnly="True" HeaderText="Acc ount #"> <HeaderStyle Font-Bold="True" Wrap="False" HorizontalAlign ="Left"
ForeColor="Whit e"></HeaderStyle>
<ItemStyle Wrap="False" HorizontalAlign ="Left"></ItemStyle>
</asp:BoundColumn >

'Here is my html for the ddl
<asp:TemplateCo lumn Visible="False" HeaderText="Bil l to Account">
<HeaderStyle Font-Bold="True" Wrap="False" HorizontalAlign ="Left"
ForeColor="Whit e"></HeaderStyle>
<ItemStyle Wrap="False" HorizontalAlign ="Left"></ItemStyle>
<EditItemTempla te>
'This is where the ddl is populated:
<asp:DropDownLi st id=ddlBillTos runat="server" DataValueField= "BillToID"
DataTextField=" BillToDesc" DataSource='<%#
GetBillTos(cint (Session("DeptI D"))) %>'>
</asp:DropDownLis t>
</EditItemTemplat e>
</asp:TemplateCol umn>

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2808
by: Stanley J Mroczek | last post by:
How do you load a dropdownlist when edit is clicked in a datagrid ? <Columns> <asp:BoundColumn DataField="OptionDescription" ItemStyle-Wrap="True" HeaderText="Option Description"></asp:BoundColumn> <asp:TemplateColumn runat="server" HeaderText="Id Type Option" "> <itemtemplate> <asp:label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "TypeOption") %>' /> <asp:label runat="server" ID="LlbTypeOption" Visible=False...
2
2238
by: rmorvay | last post by:
I am trying to dynamically build a dropdownlist and bind it to a cell in a grid. I tried to utilize the following code but I am stuck at the point where I bind the dropdownlist to the grid cell. I get the following message for this code but I suspect that the " UltraWebGrid1.Rows.Cells.Value = ddlGeography;" is not how you bind the dropdownlist control to the grid. ERROR: "The type 'System.Web.UI.WebControls.DropDownList' must be...
2
17034
by: Dominic | last post by:
Hi guys, I'm not sure if this question belongs to FAQ, but I couldn't find a concrete answer. I created a Datagrid control using ItemTemplate, but it's NOT a in-place editing datagrid. One of the columns of the data grid contains a DropDownlist. I managed to create this datagrid control as follows.
0
4794
by: Shane O. Pinnell | last post by:
I am sure this has come up before, but I haven't been able to find an answer as of yet. That said, any help is definitely appreciated! I have a datagrid populated from a dataset. I have a TemplateColumn with a DropDownList (DDL) in the FooterItemTemplate that is populated in the Page_Load event using a Sub Routine as the DataSource of the DDL. The FooterItemTemplate's DDL populates as expected when the DataGrid's DataBind method is called. ...
2
2394
by: Shiju Poyilil | last post by:
Hello, I have a datagrid with only one row and its having 2 dropdownlists, I need to populate the secodn dropdownlist on the basis of the selection in the first dropdown. but I am not able to populate the second dropdown, as its not bale to find the specified control, even though the dropdownlist with the specified name exists in the datagrid. my .aspx page code goes like this
1
1711
by: m3ckon | last post by:
Hi there, please help if you can, I'm having an issue with droponnlists in a datagrid I have a datagrid which is populated from a query .. all works fine I've added two extra columns, one is a dropdownlist and the other is a button which runs the command selectcode for this:
3
4377
by: Tim::.. | last post by:
Can someone please tell me how I go about preselecting an item in a drop drown list when I click the Edit Command in a datagrid? I have tried the following but it doesn't work for me! I would be really grateful for any assistance! Thanks
0
1833
by: Daniel Doyle | last post by:
Hello and apologies in advance for the amount of code in this post. I've also sent this message to the Sharepoint group, but thought that ASP.NET developers may also be able to help, even though it's a Sharepoint WebPart. I'm trying to do something fairly simple, create a datagrid that displays where and when a person works and allows them to change some of the information via DropDownLists. When the user clicks to edit a row, three of...
4
2011
by: Mark Waser | last post by:
I've discovered a very odd bug when attempting to put a dropdown list in a datagrid. In the page PreRender step, the selected index of the datagrid is successfully set during databinding. Yet, when the datagrid enters it's own OnPreRender, the selected index has reverted to zero. I created a debug version of the dropdown list which inherited from dropdownlist and overrode the selected index property to trace.write whenever it was...
15
3132
by: glenn | last post by:
Hi folks, I have a DropDownList in a DataGrid that is populated from records in a database. I want to add a value that might be a string such as "Select a Company" for the first item since an OnSelectedIndex event is not fired if you select the first item. Does anyone know of an easy way to do this?
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10370
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7519
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5402
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.