Intersoft WebGrid Documentation
FAQ: Can I perform retrieve structure programmatically when bound to DataSource control?
See Also Send comments on this topic.

Glossary Item Box

You can perform retrieve structure programmatically from PrepareDataBinding event handler. Here is the code snippet:

JavaScript Copy ImageCopy Code
protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
{
  if (!IsPostBack)
     WebGrid1.RetrieveStructure();
}

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.