locked
Setting the Column Width for SPGridView in custom web part RRS feed

  • Question

  • I have a custom web part which I am adding in SharePoint. This web part contains a SPGridView which has 4 columns. The same web part is added twice to the page but displays different data based on the web part properties.

    But the column widths in both the web parts is not same. I tried using ItemStyle property to set the width of the columns but it is not working for me.

    How can we set the width of the SPGridView columns programatically?


    Babal Parihar

    Monday, February 13, 2012 5:31 AM

Answers

All replies