GridViewColumn will be auto-sized by default or not?Set the Width of GridViewColumn column
if I don't set Width, the column
GridViewColumn will be auto-sized by default or not?Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Karthikeyan AnbarasanPosted Apr 7, 2011, 4:33 AM
1. Set the Gridview to corresponding datasource propery.
2. Click on the Smart tag and choose edit columns, a fileds dialog will open.
3. Select the address column and Click on Convert this filed to template column,
4. Click ok.
5. Right click the Gridview , choose edit template, choose edit address.
6. Gridview will be changed in edit mode, then
7. under the Item template ,there wil be one Label control, delete that and place one textbox control and set multi-line property to true
8. This text box will have a smart tag, click on that you will see one editdatabindings .
9. A new dialog box will be opened and
10. In that, there is one drop dowm list next to Bound to label, select the corresponding Column [say address in your case]. 11. Say ok and run the page.
Sahil JaniPosted Apr 7, 2011, 4:12 AM
There is one option in property panel that "AutoSizeColumnMode" = "Fill".
Means, it will be auto-sized and fill with your full DataGridView Box.
If you found this answer satisfy your need then marked as ACCEPT ANSWER.