Please let me know how we can do ColumnSeparator = true in ultragrid. I do not want RowSeparator or cell separator.
Your help is much appreciated.
Thanks
Manish
Hi,
I don't understand your question. What exactly is a ColumnSeparator?
Mike, I want to see the data in a Grid fashion with a thin line after each column (separating each column), But i don't want any line separating the Row.
So here is the scenario:
gridLayout.Override.BorderStyleCell =
UIElementBorderStyle.None;
gridLayout.Override.BorderStyleHeader =
UIElementBorderStyle.RaisedSoft;
gridLayout.Override.BorderStyleRow =
This gives me a Grid with only Header having a separating line. I want that line to be stretched upto the last row.
Please let me know if i am able to explain.
Oh, so you want this:
HOWTO:How can I make UltraWinGrid display vertical (column) borders without horizontal (row) borders?
Thanks Mike. This solves the purpose. However i was just wondering thay why can't we just have a property BorderColumnStyle just like BorderRowStyle or BorderCellStyle.
Hi Manish,
Well, border drawing is a bit tricky. Borders are drawn by the CelUIElement and the RowUIElement. There is no column UIElement, columns are just an organization of data, they don't really have a concrete representation.
Well, it really comes down to a decision about the structure of the UIElements in the grid. The current structure has a RowUIElement which contains the CellUIElements.
I suppose it could have been done the other way using a ColumnUIElement that contained the CellUIElements, but that doesn't really make sense, since the column is likely to be much larger than the row and the data binding model in DotNet is row-based. You get the data based on a row first, then a column, not a column first and then a row.
Hi Mike, I kind of agree to what you are saying but this what my argument is: