Intersoft WebGrid Documentation
RetrieveStructure Method
See Also  Example Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGrid Class : RetrieveStructure Method






Provides a convenient way to retrieve Column's structure from assigned DataSource.

Syntax

Visual Basic (Declaration) 
Public Sub RetrieveStructure() 
Visual Basic (Usage)Copy Code
Dim instance As WebGrid
 
instance.RetrieveStructure()
C# 
public void RetrieveStructure()
Delphi 
public procedure RetrieveStructure(); 
JScript 
public function RetrieveStructure();
Managed Extensions for C++ 
public: void RetrieveStructure(); 
C++/CLI 
public:
void RetrieveStructure(); 

Example

C#Copy Code
private void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
{
        if(!IsPostBack)
        {
                WebGrid1.RetrieveStructure();
        }
}

Remarks

In PrepareDataBinding event, you can use RetrieveStructure method to automatically populates all columns available in the DataSource. Users can use RetrieveStructure method to retrieve the structure of flat grid.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

WebGrid Class
WebGrid Members

Concepts

Retrieve Structure and Hierarchical Structure Context Command

Other Resources

SmartTag Action Panel

©2012 Intersoft Solutions Corp. All Rights Reserved.