# dhtmlxconnector:keygrid_connector [DHX documentation]

DHTMLX Docs & Samples Explorer

Index
dhtmlxconnector
Usage Guide

### KeyGrid connector

Normal grid connector expects that target table has some autogenerated ID field, but in some cases, data need to be loaded and saved from DB which has not such autofilled ID. Normal connector can be used for data loading, but will not be able to save data back to such table. To resolve such problem you can use separate connector class

    	$grid = new KeyGridConnector($res);
    	$grid->render_table("mytable","name","name,address,phone");

There are two differences from the normal GridConnector

- name of connector class
- one of data fields is used as ID