I have columns in a grid that is bound to a dataset. In my code I am applying styles to the fields that the api added dynamically based on the dataset. This doesn't work.
public
partial class VegaView : UserControl
{
VegaView()
InitializeComponent();
(VegaView_Loaded);
}
e)
initializeGrid(
.grdStrikes);
dataGrid)
layout = dataGrid.FieldLayouts[0];
dataGrid.FieldLayouts[0].Settings.SelectionTypeCell =
.Range;
dataGrid.FieldLayouts[0].Settings.SelectionTypeField =
dataGrid.FieldLayouts[0].Settings.SelectionTypeRecord =
.None;
;
dataGrid.FieldLayouts[0].Fields)
field.Settings.AllowEdit =
field.Settings.LabelPresenterStyle = (
];
(stepsColumn)
field.Settings.EditorStyle = (
stepsColumn =
Hello Kayode,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I created a sample project for you and I used the code you have provided and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Feel free to write me if you have further questions.