|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Data grid column sizesI have a datagridview bound to a data table. I want to force the columns to
all be the same size. How is this done with the grid? John Wright You can set the width on each column to an equal percentage and it will
resize the columns to fit but will maintain the size ratio. But instead of setting the Width property I would instead set the CssClass property and set width in a css file. That will give you some more options, like adding more style details. Brennan Stehling http://brennan.offwhite.net/blog/ John Wright wrote: Show quoteHide quote > I have a datagridview bound to a data table. I want to force the columns to > all be the same size. How is this done with the grid? > > John Wright
force viewstate to clear on OnCommand event
GridView... RowUpdating event not firing.... Required multiple instances of a UserControl loaded at runtime How can I send shell-commands to the web-server in webcontrols? Keeping 2 user controls of the same class synced How to position a dynamically created control... How to close multiple web pages ObjectDataSource TableAdapters Point-N-Click HELL How to create Treeview in ASP.Net 1.1? CreateUserWizard Required email |
|||||||||||||||||||||||