> For the complete documentation index, see [llms.txt](https://tldocs.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tldocs.gitbook.io/documentation/framework/window-handling-object/binddatacontrols.md).

# BindDataControls

Set DataSource for controls. For LookupGrids without Sql-Statement, the DataSource needs to be set programatically, and the method needs to be called every time a retrieve takes place;&#x20;

```csharp
protected override void BindDataControls()
{
    base.BindDataControls();
    
    Bind();
}
```

```csharp
public virtual void Bind()
{
    lgKstGrp.DataSource = Sql.SelectTable("select id, suchwort from kst where typ = 70");
}
```
