Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 07, 2007 09:58
open dhtmlx forum
I want to create a grid filled in with values from a query (SQL Server Store Procedure) and while filling...

I want to create a grid filled in with values from a query (SQL Server Store Procedure) and while filling the cells with data, lock some cells or even change it’s background color according the data value.

For example the query returns some One and Zero (true / false) values. How can I change the background of the cells with zero’s to grey and disable them? Is this possible with your dhtmlxGrid?

Answer posted on Mar 07, 2007 09:59

There is no client side logic to change cell style according to value, but it can be done on server style. You can add "style" or "class" attributes to "row" tags in XML - to set row related css. Or "class" attribute to "cell" tags in XML to set css on specified cells.

Also you can set "locked" attribute of "row" tag to switch row to read-only mode.

Answer posted by sematik (Support) on Nov 30, 2014 13:07

If you haven't found the needed information there and still looking for a solution, you will find the additional help checking php ui and dhtml tables.