Questions tagged [datagridviewcellstyle]

Represents a Style for DataGridViewCell

Learn more about DataGridViewCellStyle on MSDN.

44 questions
0
votes
1 answer

Visual Studio user-scoped DataGridViewCellStyle setting not saving

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…
Sturgus
  • 666
  • 4
  • 18
0
votes
1 answer

How to remove white related colors in KnowColor C#

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 =…
Roelzkie
  • 61
  • 11
0
votes
2 answers

System.ArgumentOutOfRangeException when trying to change the color of a cell in a dataGridView

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.…
Andrei
  • 217
  • 2
  • 12
0
votes
1 answer

Datagridview add row with cell style programmatically

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…
MD SHAHIDUL ISLAM
  • 14,325
  • 6
  • 82
  • 89
0
votes
1 answer

A style for a datagridviewcell is applied but not visible

I made a template for a cell in a column of a wpf datagrid.
Gerard
  • 13,023
  • 14
  • 72
  • 125
0
votes
2 answers

how to set DataGridViewButtonCell BackColor using htmlColor?

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…
0
votes
1 answer

How To Save DataGridView Cell Style to database

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…
user3841709
  • 386
  • 6
  • 28
0
votes
1 answer

Getting event fired control cell of the grid view in Row command event

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…
user3256204
0
votes
2 answers

How to add description to DataGridView Cell

How to add comment to cell in DataGridView? I need to comment my values in the grid.
Sergey Khojoyan
  • 113
  • 1
  • 1
  • 5
0
votes
1 answer

DataGridView Backcolors

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…
0
votes
3 answers

DataGridViewRow.DefaultCellStyle Formatting

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…
Jon P
  • 826
  • 1
  • 7
  • 20
0
votes
1 answer

Change DataGridViewCell BG Color Upon Creation

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…
Shane LeBlanc
  • 2,633
  • 13
  • 42
  • 74
0
votes
1 answer

How to find out the cell is empty in datagridview in c#.net

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.
user1858718
  • 137
  • 2
  • 3
  • 12
0
votes
1 answer

Make DataGridView SingleVertical CellBorderStyle extend all the way down?

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…
trycatch
  • 568
  • 1
  • 8
  • 17
1 2
3