You can perform retrieve structure programmatically from PrepareDataBinding event handler. Here is the code snippet:
JavaScript | Copy Code |
protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e) { if (!IsPostBack) WebGrid1.RetrieveStructure(); } |