WebHierarchicalDataGridWant to see grid lines and disable word wrapping.
How?
Hello Arseny,
In order to manipulate the styles you could modify the css files, located in the ig_res folder:
If I understand your requirement correctly, your goal is to manipulate the elements borders so separation lines between row/columns are displayed. The CSS files, responsible for the stilling of the Infragistics Controls could be found in the ig_res folder, that is created when an Infragistics Control is initially added.
For modifying the lines you could access these css files, located in ig_dataGrid.css: tbody.igg_ItemIE6 tr td AND tbody.igg_Item>tr>td
You could modify the way the text in cells is displayed by choosing white-space property, like: white-space: nowrap;
tbody.igg_ItemIE6 tr td { border-top:solid 1px #D8D8D8; white-space:nowrap; }
tbody.igg_Item>tr>td { border-top:solid 1px #D8D8D8; white-space:nowrap; }
.igg_RowSelector { border-top:solid 1px #D8D8D8; border-right:solid 1px #D8D8D8; border-left:solid 1px #D8D8D8; }
If you continue to experience any issues please do not hesitate to contact me.
I am glad that your issue is resolved. Please contact me if I can be of further assistance.
Please, let me know how this works for you.
Thank you for using our products!
Hello,
You could use the columns CSS property to set a custom CSS Class for every single column.
In this new scenario it seems more practical to leave the default CSS as it was and add a custom CSS Class to every single column for the root ContainerGrid of the WebHierarchicalDataGrid. Here are a code snippet how to achieve this in the markup and the corresponding CSS Class itself:
<Columns><ig:BoundDataField DataFieldName="CustomerID" Key="CustomerID" CssClass="noTextWrap"><Header Text="CustomerID"></Header></ig:BoundDataField></Columns>
<style>.noTextWrap{white-space:nowrap;}</style>
Thank you for posting in our community!
How to get answers>
Yes, need one more thing:The main grid is with no-wrap. OK.Now I'm adding island rows (dynamically) with no problem, but need that island rows will be with word-wrapping.Is it possible?
Thanks.