datagrid webcontrol

W

wilson

i have a datagrid control in my webform which i am using
for filling data and i want to put one submit button,
webform button control, at the bottom of the datagrid.
but my problem is i don't know how many records will be
displayed in the datagrid. so i am not able to find the
location for putting the submit button. sometimes there
may be 10 entries, sometime there may be 50 entries in the
datagrid. so the datagrid size varies. i mean the
height.. so is there any way to get the height of the
datagrid so that i can put the submit button at the bottom
of the grid.

in short, i want the button to be always at the bottom of
the grid irrespective of the number of records in the
grid..

thanks
bye
wills
 
G

Guest

Hi Wilson,

If you place your data grid in am HTML table (in a TR and
then in a TD), and place your button in that same table
in another row (TR), it should always be at the bottom.

Also, a neat way of controling the height or to "contain"
you data grid is to put it within a <div> tag, set its
height and also set its overflow property to auto. A
scroll bar will appear whenever the height of the
datagrid exceeds the height of the <div> object.

You may also investigate the Paging capabilities of the
data grid control t limit the number of rows displayed
per page. Quite impressive.

Good luck !

Ben
 

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

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top