Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid with Select Checkbox in DIV tag problem

Status
Not open for further replies.

ISPrincess

Programmer
Feb 22, 2002
318
US
I have a Datagrid that contains CheckBoxes to allow the user to 'Select' a row.
The datagrid is contained within DIV Tags.

I would like to call dgGrid_CheckChanged when the checkbox is checked or unchecked to highlight the row as a selected item.

This works fine, until the user has scrolled the grid, and selects a row. Since Autopostback must be true on the checkbox in order to fire dgGrid_CheckChanged, the form repositions the grid back to the top. I would like to somehow keep the grid scrolled where it was within the DIV tag.

I am not sure that I explained this very well, but any ideas would be greatly appreciated.

Thanks!

PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
 
Sorry - I thought I was in the asp.net forum.

Thanks for letting me know :)


PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top