Jump to content
Sign in to follow this  
Sergio990

gridView colocar Botao [RESOLVIDO]

Recommended Posts

Sergio990

Boas,

Eu tenho esta gridView:

semttuloebu.jpg

Uploaded with ImageShack.us

Ou seja essa gridView tem 7 linhas mas só existe um campo comum que muda entre elas que e a VlaId, o que eu queria era que em vez de aparecer essas linhas todas que aparecesse so uma e que no campo Vlan tivesse um botao a dizer: Ver Vlans e clicava la e ele entao mostrava as vlans associadas.

o codigo asp:

 <asp:BoundField DataField="clienteNome" HeaderText="clienteNome" SortExpression="clienteNome" />
            <asp:BoundField DataField="siteNome" HeaderText="siteNome" SortExpression="siteNome" />
            <asp:BoundField DataField="siteSala" HeaderText="siteSala" SortExpression="siteSala" />
            <asp:BoundField DataField="VlanId" HeaderText="VlanId" SortExpression="VlanId" />
            <asp:BoundField DataField="rackNome" HeaderText="rackNome" SortExpression="rackNome" />
            <asp:BoundField DataField="rackUnit" HeaderText="rackUnit" SortExpression="rackUnit" />
            <asp:BoundField DataField="posicao" HeaderText="posicao" SortExpression="posicao" />
            <asp:BoundField DataField="hostNome" HeaderText="hostNome" SortExpression="hostNome" />
            <asp:BoundField DataField="hostDescricao" HeaderText="hostDescricao" 
                SortExpression="hostDescricao" />

ps: eu vou buscar os dados a tabelas se quiserem o codigo do select eu coloco tambem ;D

Cumprimentos,

Sergio rodrigues

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.