TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ic ic
NA
85
0
Role through a datagridview - set readonly as datagridview gets populated
Oct 1 2009 3:03 AM
Hi,
I want to display certain rows readonly & change back color of a datagridview & displayed as the grid gets populated
The problem i have is that I'm using the RowEnter Event - which works when the user selects a row
But i whant it to be displayed on the grid visually without selecting a row - when grid gets populated:
private
void
dgvDetail_RowEnter(
object
sender,
DataGridViewCellEventArgs
e)
{
dgvCurrentRow = dgvDetail.Rows[e.RowIndex];
if
(oLOTXLOCXID_Row[
"WhsLPNo"
].ToString() ==
"Found"
)
{dgvCurrentRow.DefaultCellStyle.BackColor =
this
.BackColor;
dgvCurrentRow.DefaultCellStyle.ForeColor =
SystemColors
.GrayText;
dgvCurrentRow.ReadOnly =
true
;
dgvCurrentRow.Cells[10].Value = 1;}}
Please Help!
Reply
Answers (
13
)
How can i make bar diagram in c# according to the numbers of student ?
How to save the images into specified folder?