Delphi gridpanel check if cell is empty - delphi

I want to check if a cell in a gridpanel is empty or not by using the row and column value of that cell.
Any ideas?

You can test if a specific cell has a control or not by querying the control item of that cell in the ControlCollection collection.
if Assigned(MyGridPanel.ControlCollection.ControlItems[x, y]) and
Assigned(MyGridPanel.ControlCollection.ControlItems[x, y].Control) then

Related

Reference a cell by looking at a number in another cell

Cell A1 has "200" in it. I want to use that "200" when I reference another cell.
For example: ='TestSheet'!A200
Instead of typing 200 above, I want it to point at cell A1 for the value. Something like ='TestSheet'!A&A1 , but that does not work.
Point to cell A1
='TestSheet'!A1
fix row 1 and change column A->... according
='TestSheet'!A$1
fix column A and change row 1 ->... according
='TestSheet'!$A1
fix all column and row A1
='TestSheet'!$A$1
I would suggest using INDIRECT and ADDRESS. In whichever cell you are using, put the formula:
=INDIRECT(ADDRESS(A1,x))
x is the column as a number and can also be referenced to another cell.

Highlight Source Data Cell When Selecting Query Result Cell

Is it possible to highlight source data cell when selecting query result cell.
https://docs.google.com/spreadsheets/d/1NLIQBOu4izeKELIUyQLSpx_c9v87EW9TmRnuRaMOkwU/edit?usp=sharing
Race spreadsheet shared.
We want to highlight the appropriate source cell in column A when the QUERY result is selected in columns H:L.
Thanks!

cxGrid Customize FocusRect draw

I only want particulars columns on a focused row to have the focusRect on cxGrid(TableView). How do I do that?
Use the OnCustomDrawCell event of your tableview to customise the drawing. You can interrogate the AViewInfo parameter, which is of type TcxGridTableDataCellViewInfo to determine if the cell is currently selected and how your cell will be drawn.

Google Spreadsheet - Populate a cell based off different cells content, and use a third cells value

Is it possible to fill a cell with data from another cell based off the content of a different cell? I have a drop down menu in one cell, and when I select something from that menu, I would like the cell next to it to search a database on that sheet that the drop down is based off of. it has a second row with different values I would like to appear in the next column. I think about it, and it should seem easy, but I'm having troubles explaining it.
You could use VLOOKUP() to search the list based on the dropdown cell value. Ref

cxGrid: how to cast a cell to a combobox-object

i have a problem with my cxgrid. in my cxgrid there a different rows and columns which have comboboxes as properties. but how can i cast a special cell value to a combobox-object? for example: i want to set the itemindex of the combobox in row 1 and column 2 to 0.
thanks!
The ItemIndex you cannot set, because it is suplied by the DataSource (or data provider).
But you can set other properties implementing the event OnGetProperties of your grid column:
TcxComboBoxProperties(Sender.Properties).DropDownRows := 9

Resources