FAQ Database Discussion Community

How to change the Ellipse color which is present in the gridview in runtime?

<DataGrid AutoGenerateColumns="False" Height="330" HorizontalAlignment="Left" Margin="5,70,0,0" Name="grdDeviceInfo" VerticalAlignment="Top" CanUserAddRows="False" IsReadOnly="True" Width="368" HorizontalScrollBarVisibility="Auto"> <DataGrid.Columns> <DataGridTextColumn Header="Channels" Width="100" Binding="{Binding ChannelNo}"></DataGridTextColumn> <DataGridTextColumn Header="Label" Width="200" Binding="{Binding Label}"></DataGridTextColumn> <DataGridTemplateColumn...

How to set a data grid column to be a drop down when binding to a table

I am able to create a data table and bind it to a datagridview. If possible I want something more sophisticated. I want to limit the first column to values 1 to 12 and the 2nd column to either AM or PM. Thanks in advance. mDataTable = GetTable() DataGridView1.DataSource =...

Add values just to one column in DataGridView C# [closed]

I have a DataGridView with 6 columns; I want the first column to display the days of the week. And the second column should display a schedule per day. But I want them to display in vertical order, not in horizontal way. But I can't figure out how to do...