Jump to content

dbgrid roweditor stopped working


sicoobcooplivre

Recommended Posts

It still has the error:
The following happens: I use an Edit button on the form, where if the user clicks, then I change the dbgrid options to dgEditing.
When I switch to dgEditing, the fields that have editor option do not load the combobox!
Any idea?
Thank you!

Link to comment
Share on other sites

12 minutos atrás, sicoobcooplivre disse:

Boa tarde!
Você pode me ajudar?

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  UniButton1.Enabled := False;
  UniButton2.Enabled := True;
  UniButton3.Enabled := True;

  Self.ClientDataSet1.Edit;

  //UniDBGrid1.Options := [dgEditing,dgTitles,dgIndicator,dgColumnResize,dgColLines,dgRowLines,dgConfirmDelete,dgTabs,dgCancelOnExit];
end;

You can leave this dgEditing option enabled.

Link to comment
Share on other sites

  • 2 weeks later...
16 minutes ago, sicoobcooplivre said:

Please test my example

I have tested.

 

16 minutes ago, sicoobcooplivre said:

and tell me if it works there?

On 5/30/2022 at 9:04 PM, Sherzod said:

Not all grid options can be changed at runtime.

 

17 minutes ago, sicoobcooplivre said:

Can you help me?

3 hours ago, Sherzod said:

You can use client side logic I think. Once again, describe what you want to achieve.

 

Link to comment
Share on other sites

@sicoobcooplivre 

I'm sorry, you don't seem to understand me.

Yes, it's the same for me. But I told you the reason. Not all grid options can be changed at runtime.

Therefore, I asked you what you want to achieve. I'll try to find a workaround for now. In any case, you can create a request in the support portal.

Thanks.

Link to comment
Share on other sites

@SherzodGood evening!
Here's the thing: I used the personal version.
In all forms in my project, the behavior is the same: I have an edit, save and cancel button.
And changing unidbgrid options at runtime worked.
Now that I got the full version, all forms stopped working, according to the example I sent!
Is there any way to make it work the way my example is?
If there's no way, I'll think of another way and modify my entire project!
Thanks!

Link to comment
Share on other sites

2 minutes ago, sicoobcooplivre said:

Here's the thing: I used the personal version.
In all forms in my project, the behavior is the same: I have an edit, save and cancel button.
And changing unidbgrid options at runtime worked.
Now that I got the full version, all forms stopped working, according to the example I sent!
Is there any way to make it work the way my example is?
If there's no way, I'll think of another way and modify my entire project!

Hello,

Main goal, enable or disable editing?

Link to comment
Share on other sites

So: by default, my forms load like this:

UniDBGrid1.Options := [         dgTitles,dgIndicator,dgColumnResize,dgColLines,dgRowLines,dgConfirmDelete,dgTabs,dgCancelOnExit];

When I click the edit button, I need to change the options like this:

UniDBGrid1.Options := [dgEditing,dgTitles,dgIndicator,dgColumnResize,dgColLines,dgRowLines,dgConfirmDelete,dgTabs,dgCancelOnExit];

and I need the roweditor combobox to work, as shown in the image.

error.PNG.2b342ddd1f84bfabdb1b7d6aef64f54f.png

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...