Jump to content
Sign in to follow this  
lau1993

clicar numa celula da datagrid

Recommended Posts

lau1993

Eu tanho uma datagrid e depois queria ao clicar numa celula me aparece-se numa textbox por exemplo o nº1

e depois ao clicar noutra celula me aparece-ne na textbox por exemplo o nº2

por exemplo:::

eu clico numa celula da datagrid e aparecia-me na textbox1 o nº1

e depois eu clicava noutra celula da datagrid e aparecia-me na textbox1 o nº2

Share this post


Link to post
Share on other sites
marciocardoso

Tambem podes fazer qualquer coisa deste género em jquery:

$(document).ready(function () {
$("#divGridView table tbody tr").click(function () {
para aceder ao valor da celula selecionada fazes $(this).val();
})
});

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.