Jump to content

Recommended Posts

Posted

Hi huangrenping.

 

In designtimes:
1. UniStringGrid -> Options -> goEditing = true
In runtimes:
1. Uses ... Vcl.Grids ...
2. UniStringGrid1.Options: = UniStringGrid1.Options + [goEditing];
Sincerely...
Posted

 

Hi huangrenping.

 

In designtimes:
1. UniStringGrid -> Options -> goEditing = true
In runtimes:
1. Uses ... Vcl.Grids ...
2. UniStringGrid1.Options: = UniStringGrid1.Options + [goEditing];
Sincerely...

 

Thank you for your answer, It'll make fixed cells can not be edited, But also make other cells can not be edited. 

Posted

 

Hi huangrenping. 
 
Sorry. Can clarify the issue?

 

In designtimes, uniStringGrid's FixedRows and FixedCols are the same as normal StringGrid.

but in runtimes as webmode, all cells of the unistringgrid are the same, they can be edited with options property of "UniStringGrid -> Options -> goEditing = true", and all can not be edited with "goEditing = False".

And now, I just want to make FixedRows and FixedCols Can not be edited, no matter "goediting" be true or false.

 

I'm sorry for my poor description.

Posted

In designtimes, uniStringGrid's FixedRows and FixedCols are the same as normal StringGrid.

but in runtimes as webmode, all cells of the unistringgrid are the same, they can be edited with options property of "UniStringGrid -> Options -> goEditing = true", and all can not be edited with "goEditing = False".

And now, I just want to make FixedRows and FixedCols Can not be edited, no matter "goediting" be true or false.

 

I'm sorry for my poor description.

 

Sorry I just didn't understand the question, now everything is clear.
Now I will try to find a solution...
Posted

Solution:

 

1. UniStringGrid -> Options -> goEditing = true

 

2. UniStringGrid -> ExtEvents -> add event beforeedit

function beforeedit(editor, context, eOpts) {  
  var FixedRow, FixedCols;
  FixedRow = 1; 
  FixedCols = 1;   
  if (editor.cmp.uniRow < FixedRow || editor.cmp.uniCol < FixedCols) {
     return false;
  }
}

Sincerely...

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...