How can I make the row line separator solid, and the column line separator dotted?
Hello Gaofeng393,
I have tried using Infragistics WinForms for 2007 vol3, and I am still able to use the code above. Are you sure that you are hooked to the IntializeLayout event correctly? You could verify that if you put a break point inside this event, and run your application.
If there are no styles applied over your UltraGrid, than I am not sure what could be. If you could provide me small sample demonstrating this behavior I will be glad to take a look at it further for you.
If you have any other questions please feel free to contact us.
Thank you for your answer.
My version of the Infragistics Controls is 2007.
I have tried this and it does work correctly for me.
Could you please let me know if you have any AppStyle applied to your UltraGrid? Maybe something in your code overrides these settings somewhere in the code after the initial set?
What version of the Infragistics Controls you are using?If you have any other questions please feel free to let us know.
I want to make the row line separator dotted, and the column line separator solid,
I set as below, but the result is that the row line separator and the column line separator
is solid.
{
e.Layout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;e.Layout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Solid;
}
How can I make the row line separator dotted, and the column line separator solid?
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.BorderStyleRow = UIElementBorderStyle.Solid; e.Layout.Override.BorderStyleCell = UIElementBorderStyle.Dotted; }