|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
way to make 2 GridViews line upHi all;
I have a couple of pages where I have a GridView, some text, then a secong GridView. Both GridViews display the same type of data (different selects) and I would like their columns to line up. Is there any way to do this other than forcing the width on each? -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreports.com/film.htm If the data is in separate GridViews the data will be in separate HTML
tables. That will cause them to behave independently unless you do set their widths to match specifically. What you might want to try is placing the data together in the same GridView and try to separate the 2 groups, but that could be hard to do, especially if you allow for sorting. Look for the ImportRow method to load the DataRows from another DataTable into the shared DataTable. Brennan Stehling http://brennan.offwhite.net/blog/ David Thielen wrote: Show quoteHide quote > Hi all; > > I have a couple of pages where I have a GridView, some text, then a secong > GridView. Both GridViews display the same type of data (different selects) > and I would like their columns to line up. Is there any way to do this other > than forcing the width on each? > > -- > thanks - dave > david_at_windward_dot_net > http://www.windwardreports.com > > Cubicle Wars - http://www.windwardreports.com/film.htm Hello Dave,
As for the multi GridView's column alignment, I'm afraid we haven't any better means other than use Column width the control the size of each column of GridView since different Gridview is rendered in different html <table> element and there is no standard means to align two separate html table's table columns in html page. Sincerely, Steven Cheng Microsoft MSDN Online Support Lead This posting is provided "AS IS" with no warranties, and confers no rights. That's what I thought - but figured it never hurts to ask.
-- Show quoteHide quotethanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreports.com/film.htm "Steven Cheng[MSFT]" wrote: > Hello Dave, > > As for the multi GridView's column alignment, I'm afraid we haven't any > better means other than use Column width the control the size of each > column of GridView since different Gridview is rendered in different html > <table> element and there is no standard means to align two separate html > table's table columns in html page. > > Sincerely, > > Steven Cheng > > Microsoft MSDN Online Support Lead > > > This posting is provided "AS IS" with no warranties, and confers no rights. > >
Need button control that...
auto-size textbox 3 step wizard - ignore last step Can't duplicate ID in subclassed GridView menu question Gridview sorting event - Gridview Datasource always Null .. why??? WebParts & Highend Portals Anyone have APP_LocalResources resx files for the MS controls... all bitmap button in grid? how to validate input of a detailsview? |
|||||||||||||||||||||||