Hi all how can I populate the header row of a flexgrid with a date, selected from the difference between two dates. i.e. 30 days in a month I would like to show that in the header. I can create a list and populate the list but then I need to change that into an Array of String before I can use it. I'm obviously not thinking properly as I have come back from major surgery and still feeling a bit heady. I know I should be able to work this out but at the moment I can't.
If you want to change only the single column name it is not necessary to send all the arai containing all the column names. Use the SetColName method. SD_Flexgrid.SetColName (ColumnIndex As Int, Name As String)
Star-Dust, thank you for your reply that does exactly what I want just another question can we freeze the first two columns of the grid?
bit cheeky I know!!
Regards
David
PS thank you for the health comment
I created a new library to show a table (or grid) similar to the one in EXCEL. There are already excellent classes that allow many to accomplish things, such as xCustomListView by @Erel (B4X) and with the FlexibleTable by @klaus (B4A). I wanted to make something slightly different suited to...
www.b4x.com
I plan in the future to add a function to freeze columns
Hi Star-Dust
Yes just checked it out and it a similar technique to a system I built for a friend of mine. I will look into that in the morning again thank you for your assistance. I need to reward you some way with a donation but I am not sure the level that is generally paid?
Hi Star-Dust
OK tried the two flexgrid method and that works great does what I want, next question is there a way of accessing the text in a Header Cell, I know I can set it with FlexGrid1.SetColName(index, "Title") can I get it with something like FlexGrid1.GetColName(index)) is that a function that you could add?