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(); |
C# | Copy Code |
---|---|
private void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e) { if(!IsPostBack) { WebGrid1.RetrieveStructure(); } } |
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.
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
Reference
WebGrid ClassWebGrid Members