Add new row always on TOP...

Hi,

    i want to set Add new row grid line always on top. How to set? plz help me...

    I attached the sample..

    Add new row text displaying from XML...

MY get.php file,

header("Content-type: text/xml");
echo('<?xml version="1.0" encoding="utf-8"?>'); 
echo '<rows id="0">';
$data = getTM_Intmemo($search_data,"","");

//スタッフ
$srt_staff[position] = 'desc';
$staff_array = getTM_Staff("","",$srt_staff);

[b]//ADD NEW ROW
echo ("<row id='0'>");
print("<cell>新規登録<![CDATA[".$row['name']."]]></cell>");
print("</row>");[/b]

foreach($data as $key =>$value){

	//ins_dt
	$ins_dt_y=substr("$value[ins_dt]", 2,2);
	$ins_dt_m=substr("$value[ins_dt]", 5,2);
	$ins_dt_d=substr("$value[ins_dt]", 8,2);
	$ins_dt=$ins_dt_y.$ins_dt_m.$ins_dt_d;

	
	//スタッフ	
	$id_staff = $value[staff];	
	$staff_str = makeHtmlSelectDBChk($id_staff,$staff_array,name);	
	
	echo ("<row id='".$value[seq]."'>");
	print("<cell><![CDATA[".$value[seq]."]]></cell>");
	print("<cell><![CDATA[".$ins_dt."]]></cell>");
	print("<cell><![CDATA[".$staff_str."]]></cell>");
	print("<cell><![CDATA[".$value[contents]."]]></cell>");
	print("<cell><![CDATA[".$value[plan_dt]."]]></cell>");
	print("</row>");
	
}
echo '</rows>';

?>




Take a look at: docs.dhtmlx.com/doku.php?id=dhtm … nipulation

method: grid.addRow(new_id, text, ind);

ind - position of added row

added the code for new row in the get.php file like below…

echo ("");
print(“NEW ROW”);
print("");

instead of above code, any other option is there… help me…

You should not use row with “0” id.