selecting a row in a datagrid without postback

K

kingflux

is it possible to select a row in a datagrid without postback.......

Hello, Joy-- Depends on what you're trying to do. If this doesn't
help, please provide more details. I use javascript in my web form to
reference the row in what I think is a very roundabout way (but it
turns out to be pretty normal). The HTML for my textbox looks like
this:

<asp:TextBox id="targetgrossprofit" runat="server"
onchange="updatePrice(this);" ></asp:TextBox>


At the top of my web form, this javascript appears:

function updatePrice(tbNewGrossProfitPercentage)
{
var newgrossprofitpercentage =
parseFloat(tbNewGrossProfitPercentage.value);
tbNewGrossProfitPercentage.value = newgrossprofitpercentage;

var row =
tbNewGrossProfitPercentage.parentElement.parentElement;
var gridrow = row.rowIndex + 1;
..
..
..
}

Hope that helps!
 
T

Teemu Keiski

To add to prevous reply, is the postback just usability issue? Long page,
which loses the scroll or something? If you use ASP.NET 2.0, you could use
ASP.NET Ajax to enchance the usability. E.g to make postbacks without
visible screen refreshes etc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top