Hi Tiago,
It worked as you said, without step 6.
However, it keeps happening. I mean, if after a while try to open another form/usercontrol in the designer I get this kind of strange errors. So the question is, is there any way to avoid them altogether? Am I doing something fundamentally wrong?
Best,
Alex
Yeh …that´s a problem. Exactly my situation …
Regards
Hi Marcelo,
Wisej is an ASP.NET application and ASP.NET requires full trust. Please have a look at this Reclamação.
Hi
I face exactly the same problem with DatagridView Designer, i can’t change the name of a column because the name properties does not appear
Br
Nikos
Hi Tiago and Luca,
Honestly, the way with overriding of DataGridViewCell.CellRenderer property seams to me more elegant, I will try to play around it.
Thank you.
Kind regards,
Dmitry
Hi Dmitry,
CellRenderer can be changed to the whole column and will be applied to all Cells in this column. That is not good as we need to change Render procedure for only one Cell in the column.
I know. That’s why I made the prefix example. You can use the prefix to change just some cells, or even just one cell. The example shows how to remove the prefix.
[edit]
Please note you an use just a CSS and the _getCellClass function. In this case, you should remove the prefix in this fucntion.
Hi Tiago,
Thank you very much. That’s a good example and I hope it will help in the future.
But for my exact issues it can not be applied.
1. CellRenderer can be changed to the whole column and will be applied to all Cells in this column. That is not good as we need to change Render procedure for only one Cell in the column. But for the Cell class CellRenderer is read only.
2. Changing the style for the whole row using CSS like ” .qx-row[row=’2′] {}” is static and possible only for the row number 2, but the number will change dynamically.
Anyhow, thank you very much again. If you think out something else about these issues or issue in thread “https://wisej.com/support/question/non-selectable-datagridviewrow-is-it-possible” I would be very thankful.
Kind regards,
Dmitry
Hi Marcelo,
The column header not being hidden was logged as WJ-9155.
Hi Dmitry,
A per column custom CellRenderer can be used to change how cells are rendered on the client side. I attach a sample. that uses custom CSS classes and a custom CellRenderer. This cell renderer is a JavaScript file that falls back to the normal cell renderer when the cell value is prefixed with “#”. In this case, the prefix is remove and the cell value is changed. The same cell renderer also conditionally sets the CSS class to use.
This sample intends to show the added flexibility you gain by using CSS styles and cell renderers.
[Edit]
Forgot to mention that you can have a look at DataGridView Row animation thread that shows some nice things you can do when you use CSS.
Tiago,
Follow the example
Regards
Hi Dmitry,
Setting Enabled = false on any Wisej.Web.Control makes the Control unselectable. DataGridViewRow and DataGridViewCell don’t inherit from Wisej.Web.Control and I’m afraid neither support the Enabled property.
Hi Marcelo,
The feature DataGridView Locked Rows is on the road map.
Hi Marcelo,
Can you attach a sample?
Hi Alex,
This looks like a VS designer issue. The fact that it comes and goes tells me exactly that. Please try the following steps:
1. close all design views
2. clean the project
3. build the project
This ensures all DLLs are ready for the next time you open the project
4. close VS
5. Re-open VS and the the project
It should work. If it doesn’t, you need another step
6. rebuild again.
As you can see in the error message, it’s the same class not being to cast to itself. It’s because VS loads two copies of the same assembly. In .NET you can actually have the same class loaded more than once when the assembly is loaded from different locations. VS creates a copy of the assemblies it loads and sometimes fails to update one of the copies.
Hi Tiago,
I don’t know if this is related, but today I tried to open another usercontrol in the designer and got the attached error. “baseTLP” is a TableLayoutPanel in the control, the error says the designer is trying to cast that from one type to another, fro a context “LoadNeither” to context “LoadFrom”, hope this makes some sense to you.
Best,
Alex
Hi Leo,
I´m not sure I fully understand your question. .cs and .vb are not meant to be deployed.
They are similiar to code behind in ASP.NET.
For more information about deploying a Wisej application please refer to
https://wisej.com/docs/html/Deployment.htm
Hope that helps.
Best regards
Frank
Dear Tiago,
A I already told here:
https://wisej.com/support/question/datagridviewrow-and-theme-mixin,
we need to add some non-standard information rows into DataGridView such as row for totals or row-delimiter of groups etc. These rows should not be selectable ones nether by mouse click nor by keyboard. And also they have to have different style for formatting, like the HeaderRow has.
Kind regards,
Dmitry
Hi Dmitry,
DataGridViewRow doesn’t inherit from Component so I’m afraid this method won’t work. A feature request was logged.
Hi Dmitry,
This is an unusual application requisite. Since you can set ReadOnly for the entire grid, row and cell so users can’t change the content, why do you need to make it non-selectable?
Hi Dmitry,
You can use a mixin to set the apperance for the DataGridView. Setting the AppearanceKey for individual rows and cells isn’t supported.
Can you elaborate on what you are trying to achieve? There may be a simpler way of doing it.
