I want to change row and column definition index of a control in grid, like my textbox having index 2nd row and 3rd column in a grid now i want to move to 3rd row and 5th column so how to do this programmatically.
Grid.SetColumn(textBox, 5);
Grid.SetRow(textBox, 3);
Use Grid.SetRow and Grid.SetColumn, usually for attached properties such a static method exists on the owning type.
Related
I have a table that is referencing a pivot table on the same sheet. I added a form control scroll bar to be able to flip through the data without changing the view.
The headers of that table are linked to the headers of the pivot table. I am trying to write the =INDEX(L3:L$17,$D$6) formula so that the column info is adjusted automatically.
I managed to use the columnletter to convert the match of the header to the correct letter but don't know how to adjust the Index formula to use that info.
The goal is to change the index column array reference whenever I change the header dependency to another column.
change to Header from City to Street, should change the Index formula to use column M instead of L
The Match function will search the header word in the pivot table.
So you can change the words in the header and get the results for it without changing the formula.
Option 1 E8= =INDEX($L$3:$N$26;$F$3+ROWS($E$8:E8)-1;MATCH(Q$6;$L$2:$N$2;0))
Option 2 Q7=INDEX($L3:$N$26;$F$3;MATCH(Q$6;$L$2:$N$2;0))
I have a Google sheet where I receive the data automatically from a software. Basically it adds a new row and with data in each column. Now I have to add manually a column and I want to add a formula to each new row. I'm using IF to leave the cell blank if G1401 is empty.
=if(G1401="", , ifna(CONCATENATE(G1401," - ",H1401," - ",J1401)))
But i have to drag the formula for the cells I want and thats THE problem. If I drag the formula, when the software sends a new row, it's assuming that I already have a row filled with a formula and write in the next one without the formula.
What I want is something similar to FILTER function to be able to not use the drag cell formula to use it or something similar.
use in row 2:
=ARRAYFORMULA(IF(G2:G="",, G2:G&" - "&H2:H&" - "&J2:J))
I use three component to save same data : TDBGRid, TDatasource and a MessageTable.
I set the edition mode for my DBGrid
MessageDBGrid.Options := MessageDBGrid.Options + [dgEditing];
My question is simple but i can't do that : how can display a DBGrid without any row ? At start, i need to display juste the header for fields.
There is no way to display a DBGrid with zero rows. It will always have one data row, even for an empty table, and even with no datasource assigned it shows an empty row (that is one column wide).
See, for instance, this DBGrid, dropped on a new, blank VCL form in a new, empty VCL application with no other controls:
I've got a matrix that looks like this:
And I would like to hide the column with no data (i.e. second one for the date 21.05...).
I have tried applying expression "IsNothing" and '...Value = ""...' in Visibility field of the Column and of the Group.
How can i get it to hide the "empty" column?
Thank you in advance!
Write This Expression On Column Visibility Property Of Every Column.
=IIF(COUNT(Fields![ColumnName].Value) = Cint(0),TRUE,FALSE)
Given instance of a C1TrueDBGrid and cell location (row and column indexes), how can I determine if the cell is editable or readonly?
The query has already been taken care of on the C1Forums.
Regards,
Mohita