FixedColumn in StringGrid - tstringgrid

It is possible to fix for example only third row in StringGrid?. StringGrid have property FixedColumn but you can start fixing columns only from the begining.
tnx!

TStringGrid does not natively support that, no. But you can owner-draw the cells to make them look like fixed cells, at least.

Related

DHTMLxGrid 3.0 Issue with sorting and percent width columns

Sorry for no code sample, I can try to get a small sample at some point. But hoping someone has seen this behavior before.
I have a DHTMLxGrid (3.0) that was created from an HTML table. The column widths are set using grid.setColumnWidthsP. When you click on the header to sort the columns, it continually expands the widths of most of the columns. If I remove the setColumnWidthsP and allow the grid to calculate the widths, it works fine. Another issue that might be tied to it, the sort image never appears. Again both items work fine if the column widths are not set by percentages.
Please, check width of your HTML table. if it has the relative sizes it may expand to the parent.
If the problem still occurs for you please, provide any kind of snippet or a complete demo, where the problem can be reconstructed.
You can also try to create a snippet here:
https://snippet.dhtmlx.com/5/

Need to provide spaces between cells in UITableview in ios

I need to provide space between cells in UITableview.And I am also posting an image which consists of here two cells.I have gone through previous posts,but I am unable to find a suitable answers.
Thanks coders
There are several ways to achieve this, and none as simple as you may expect, the two ways that come to my mind right know are:
Define your custom cell to add an space on bottom by playing with the foreground background. If you dont need the space (for instance at the last cell) resize the cell to hide it.
Use a grouped table with one section per cell so you can use that section as space

How to ellipsise in the selected value in a combobox?

In our Silverlight page, I got comboboxes with different values. When selected, some values are too long to fit in the collapsed combobox.
I would like it to ellipsise ("System Use..." with three dots in the end).
In the dropdown the full name of the value can be seen, but when collapsed I would like the selected value to ellipsise. It feels like an obvious thing, as a drop down generally affords more space than the collapsed control, but still I cannot find an obvious way to do this.
You might want to take a look at http://www.codeproject.com/Articles/37503/Auto-Ellipsis.
It's similar to Zenexar's suggestion, uses a more efficient reduction algorithm in the general case. But it also writes about other types of 'ellipsing', which might also suit your needs perhaps.
Take the selected UIElement. Compare the RenderedWidth and RenderedHeight to the DesiredSize, the latter of which will be adjusted based on how the element is cut off. Repeatedly remove characters, append ellipsis, and invalidate the layout until the DesiredSize is smaller than or equal to the RenderedWidth/RenderedHeight
I think the best way would be to check the length of the selected item. If the length is more than a predetermined character length, cut off the rest and append three periods.

Merging DataGrid Cells (Row Wise & Column Wise)

This question might have beebn asked earlier but i have not found ne solution....
How can i merge Two(or More) Cells in WPF DataGrid...
I have found no in built provision to do it, also i doint even know how to start
this link shows some light but still no luck...
What i wish to do is i need to Merge Two Cells of a Particula DataGridRow/DataGridColumn based on some value (It can be ne thing) Just like we Do in Excel (merging cells)
Have you considered doing cell templates for that cell in the row? If you want the same pattern repeated, that's an idea. You can use stack panels to align things as you need them.

Any 3rd party Table like controls for WPF?

I know about Grid. What I don't like about Grid is that I have to specifically index every single row and col. So afterwards, if I want to just move one row or col, I have to go update a ton of xaml.
I tried stackpanel and styles but then even this is a lot of redundant xaml and rearanging the screen still involves then removing/updating styles.
I really like how in an html table, I just start laying out my rows and cols on the fly. If I want to move a row, that's easy, I can just copy paste the xaml to the right spot, nothing else needs to get touched. A col, is a bit harder, but still can be done easily with cut/paste, just needs to be done to every row.
With grid, one may need to touch every single thing in it depending on what's moved.
And what would be really cool, is if one could declare the column width and row heights up above just like a grid. But then as need, provide override values in the actual row,col declaration down below that actually contains the gui elements.
Does anything like this exist?
I've seen implementation of a Grid that infers ColumnDefinitions from usage of attached properties. Its definately doable. You could create an attached property that signifies that this element is the last element of a row.
(See WrapBreakPanel in Pro Silverlight 4 in C# By Matthew MacDonald)
And what would be really cool, is if one could declare the column
width and row heights up above just like a grid. But then as need,
provide override values in the actual row,col declaration down below
that actually contains the gui elements.
Sounds like this could get confusing. What if multiple cells in a row override the height? You can pull this off already with Auto sizing a row and having elements take up more space as needed.

Resources