LesCar Posted November 17, 2017 Share Posted November 17, 2017 (Newbie) I am using UniStringGrid1DrawCell to set Attribs for Color/Font/Style, and it works fine on initial loading of the UniStringGrid. However, if the browser reloads the page, the attributes are lost. Assistance would be appreciated. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 17, 2017 Share Posted November 17, 2017 Hi, However, if the browser reloads the page, the attributes are lost. What do you mean by saying "if the browser reloads the page" ? How can we reproduce this ?! Best regards, Quote Link to comment Share on other sites More sharing options...
LesCar Posted November 17, 2017 Author Share Posted November 17, 2017 Hi When the browser connects for the first time, the UniStringGrid is populated by the following code: UniStringGrid1.RowCount := 2; for i := 0 to UniStringGrid1.RowCount-1 do begin UniStringGrid1.Cells[0,i] := 'text1'; UniStringGrid1.Cells[1,i] := 'text2'; end; //the Attribs defined in UniStringGrid1DrawCell are applied correctly If the browser is subsequently reloaded, the above code runs again, but then the attributes are not applied Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.