TableHeaderStyle cssclass is not getting set if we load the tablestructure from db

1 reply. Last post: December 19, 2011 10:23 PM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Madhavan GMember

Hi Team,

We are using Webgrid 7 and we have the option to store the layout in db with rearranging columns,sorting specified etc.

We have specified Styles for Rowstyle,HeaderStyle,TableHeaderStyle through CssClass.

When we load the saved layout structure the TableHeaderStyle css class is not getting set.

It is taking the HeaderStyle CssClass instead of TableHeaderStyle css class.

If i load the webgrid without loading the structure from db then css class is set correctly to tableheaderstylecss class.

 

We are using like for loading the structure.

 

System.Text.UnicodeEncoding encoding = new System.Text.UnicodeEncoding(); byte[] griddataarray = encoding.GetBytes(workflowgridxmldata); MemoryStream ms = new MemoryStream(griddataarray); ms.Seek(0, System.IO.SeekOrigin.Begin); if (WebGrid1.FlyPostBackAction == "" || WebGrid1.FlyPostBackAction == "None")

{

WebGrid1.LoadTablesStructureFromXml(ms);

}

 

regards,

Madhavan

 

 

 

All times are GMT -5. The time now is 11:46 PM.
Previous Next