FXSystems Posted August 25, 2023 Share Posted August 25, 2023 Hello everyone. Does anyone have an idea or a workaround for the following problem: How to change the height of any single row in UnidbGrid? I know how to change the height of all rows, but is it possible to change the height of e.g. only the third or any other row? Any hints? Thanks for any answer. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 25, 2023 Share Posted August 25, 2023 Hello, For what purpose? Please explain in more detail. Quote Link to comment Share on other sites More sharing options...
FXSystems Posted August 26, 2023 Author Share Posted August 26, 2023 Hi Sherzod. This is indeed an unusual situation. I need to prepare a tabular view for one of my projects in which every two records are an integral business part. We have multiple repeating columns for different dates. But every one pair of records is important in thit case. The first record (of the pair) contains a large amount of text data, and the second set of keywords that do not take up much space. I've tried setting the dynamic height, but my bussiness client requests that these sizes be set default. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 26, 2023 Share Posted August 26, 2023 1 hour ago, FXSystems said: Hi Sherzod. This is indeed an unusual situation. I need to prepare a tabular view for one of my projects in which every two records are an integral business part. We have multiple repeating columns for different dates. But every one pair of records is important in thit case. The first record (of the pair) contains a large amount of text data, and the second set of keywords that do not take up much space. I've tried setting the dynamic height, but my bussiness client requests that these sizes be set default. hi, in unidbgrid you can use html with css tag , on ondrawcell you can add different css style for every cell based on condition. Quote Link to comment Share on other sites More sharing options...
FXSystems Posted August 28, 2023 Author Share Posted August 28, 2023 Hi Irigsoft. Thanks for the advice. I'll try. If something interesting comes up, I'll share it. 1 Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 28, 2023 Share Posted August 28, 2023 1 hour ago, FXSystems said: Hi Irigsoft. Thanks for the advice. I'll try. If something interesting comes up, I'll share it. for example you can add '</br></br></br>' after cell data to extend row. like this: If YourCondition then begin Columns.AllowHTML := True; Column.Field.Value := Column.Field.Value + '</br></br></br>'; end; 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.