Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
251
Webdatagrid Columns Header caption lost on postback
posted

Hi,

I am adding the columns to the grid at runtime and setting the header caption

BoundDataField

 

boundcolumn = new BoundDataField();

boundcolumn.Key = attributes.ColumnName;

boundcolumn.DataFieldName = attributes.ColumnName;

boundcolumn.DataType = attributes.Datatype.ToString();

 

 

 

 

My problem is the header caption is lost after the postback though the columns remains.Can someone plz help ?