Resizing columns in datagrid control automatically 
Author Message
 Resizing columns in datagrid control automatically

I am using the data grid (datalist controls v6) and ado data control ( V6)
control in an active x control which I place on a web page. I pass through a
parameter which I use to modify the recordsource property so I can display
several different tables by modifying the parameter from the ASP page.


<PARAM NAME="someSQL" VALUE="<%=someSQL%>">

This works fine, however how can I autofit the columns so that it fits to
the largest entry in the datagrid. (Note the number of columns is not fixed
as the recordsource can refer to a different table.)

I looked at the defcolwidth property but could not get this to work. Any
help would be greatly appreciated



Sun, 16 Nov 2003 01:39:01 GMT  
 [ 1 post ] 

 Relevant Pages 

1. width of the datagrid columns that are automatically bound

2. Datagrid Column Resizing

3. Preventing DataGrid Row/Column Resizing At Runtime

4. Resizing columns in datagrid

5. URGENT : Width datagrid columns problem resize

6. How to auto resize columns in DataGrid?

7. Resizing columns in an datagrid

8. Resizing controls automatically...

9. Resizing controls on forms automatically to suit screen resolutions

10. automatically resize controls - code snippet

11. automatically resizing a control

12. resizing DataGrid after resizing Form


Powered by phpBB® Forum Software