c# - Add dropdownmenu - button to gridview -


I am trying to explain how I can add a button to a gridview when the drop down menu Clicks will be formed with clickable options and will fire some types of incidents.

[The image below the relevance can help the location of the button in some concepts]

The problem is that when a row is added or in any way, It will not be shown.

This is my code:

  & asp: gridview runat = "server" id = "grdvw deposit transaction" autoconfiguration column = "fottal" datakiname = "status" ONREVE COMMOD = "GRDED DEPOSIT TRANSGATION_RO COMMUN", "Overdotabound =" Grade_ReadoutBound "csslas =" Grid "& gt; & Lt; Columns & gt; & Lt; ASP: TemplateField & gt; & Lt; ItemTemplate & gt; & Lt; Ul id = "actionMenuHomeScreenPanel" style = "display: none; margin-top: -6px; text-align: left;" Onmouseover = "javascript: showmenu (); return back;" Onmouseout = "javascript: hideMenu (); return false;" Class = "ui-menu" & gt; & Lt; Li & gt; & Lt; A href = "#" onclick = "window.close ();" & Gt; Cancel & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; ASP: LinkButton ID = "LinkButton 1" runat = "server" onclic = "BTnwillitTotes_click" text = "validate transaction" width = "100px" & gt; & Lt; / ASP: Linkbutton & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: TemplateField & gt; & Lt; ASP: BoundfieldDefined = "DepositInternard Number" HeadText = "Card Number" Item Style- CssClass = "Medium Column Column Center" /> & Lt; ASP: Boundfield Dated Field = "Deposit Entry. CountEnumber" HeadText = "Account Number" ItemSystem - CSS Class = "Medium Column Column Center" /> & Lt; ASP: Boundfield Dated Field = "DepositIntry. TaxID" Header Text = "Tax ID" ItemSystem - CssClass = "Medium Column Column Center" / & gt; & Lt; ASP: Boundfield Dated Field = "DepositIntry. First Name" Header Text = "Customer Name" Item Style- CssClass = "Medium Column Column Center" /> & Lt; ASP: Boundfield Dated Field = "Depositententry. Transaction Dataet" HeaderText = "Transaction Date / Time" ItemSystem- CssClass = "Medium Column Column Center" /> & Lt; ASP: Boundfield Dated Field = "Deposit Entry Cash Amount" Header Text = "Cache Amount" Item Style- CssClass = "Medium Column Column Center" / & gt; & Lt; ASP: Boundfield Dated Field = "Deposit Entry Dupet Amount" Header Text = "Envelope Deposit" Item Style-CSS Class = "Medium Column Column Center" /> & Lt; / Column & gt; & Lt; EmptyDataTemplate & gt; & Lt; Span style = "font-weight: bold; text-anchor: middle;" & Gt; No transactions have been entered & lt; / Span & gt; & Lt; / EmptyDataTemplate & gt; & Lt; / ASP: GridView & gt;  

Trying to create a button that fills this requirement

Use the template field. See this example

  & lt; Asp: TemplateField HeaderText = "Administration" & gt; & Lt; EditItemTemplate & gt; & Lt; Asp: dropdown list id = "ddlAdministracao" runat = "server" SelectedValue = '& lt;% # bind ("administration")%> Width = "multiplied 90px" & gt; & Lt; Asp: ListItem value = "true" text = "ativa" /> & Lt; Asp: ListItem value = "wrong" text = "bluedo" /> & Lt; / ASP: DropDownList & gt; & Lt; / EditItemTemplate & gt; & Lt; ItemTemplate & gt; & Lt; Asp: image id = "imgAdministracao" runat = "server" ImageUrl = '& lt;% # (Eval ("admin"). Equal (true) "image / OK.png": (Eval ("administration") .Equals (False)? "Picture / no page": "~ / image / blank.gif"))%> '/ & Gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: TemplateField & gt;  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -