I'm uncertain if this is a bug, a 'feature', or if I'm doing something incorrectly, but I'm trying to save a DataGridViewCellStyle as a user-scoped setting in a Windows Forms application coded in VB.NET. I'm able to get other settings to save and…
Currently im using this method for generating randomized KnownColor used for DataGriView cell background-color.
public static Color GetRandomizedKnownColor()
{
Random randomGen = new Random();
KnownColor[] names =…
I am trying to build an event management app. I have a window with a month calendar. This is how the DataGridView looks like:
Each cell represents a day month and if one ore more events are scheduled for that day, the cell has to be colored green.…
dgvStatus is a DataGridView with one column.
Following line is adding new row
dgvStatus.Rows.Add("XYZ");
But I want to change cell text color so I have written following code
DataGridViewRow row = new DataGridViewRow();
DataGridViewCellStyle style…
I'm struggling since 2 days to with this problem.
I have an XML file which contains Colors as htmlColor Code, in my program I have a DataGridView which is showing me the values in hexCodes, and I can click on it and change the color value with a…
I am working with a DataGridView in vb.net and I am trying to work on saving changes that are made in the DataGridView to my Access Database. The problem is, The user can change Individual cell background colors by selecting whatever cells they want…
Can anybody please help me to get the cell index of the event fired control in row command of the grid view. I have one radio button control in side my grid view. If the user clicks on the radio button, i need to change the background color of the…
This is with respect to the language C#.
I want to use the last column in a DataGridView as a color column.
The Row in the list will have some data and the last column cell of that row will have a color to represent if it is right or wrong, good or…
I have this code attached on RowValidating event of a DataGridView:
private void dgvSrc_RowValidating(object sender, DataGridViewCellCancelEventArgs e)
{
DataGridView dgv = sender as DataGridView;
if…
Currently there is a column in my grid that changes background colors when a the grid sort event is called. The bg color changes depending upon the integer value within the cell. Right now it does this with a for loop and has to go through each row…
In datagridview how to find out the cell is empty when iam leaving the cell,if it is empty i want to handle that cell,i.e ristrict the user go forward.if data fill user can go forword normally,how can acheave this task.
Note before I begin.. this is what the customer wants it to look like, so if anyone has any "that's terrible UI/Style/looks/etc", I may or may not agree, but this is what they want. Opinions appreciated, but this is their request. :)
I've got a…