Click here to Skip to main content
15,920,896 members

getmayukh - Professional Profile



Summary

    Blog RSS
1,720
Author
10
Authority
2
Debator
30
Organiser
347
Participant
0
Editor
0
Enquirer
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralCellPainting datagrid view c# 2.0 Pin
getmayukh11-May-06 12:40
getmayukh11-May-06 12:40 
Hi,

i have been working in c# 2.0. i wanted to place icons in the
datagridview row header cells. I had overridden the cellpainting event
and used the drawicon to place the icons.


i want to now get back the default row header border style (Raised one)
as a border for the row header cells. Any idea how i may achieve this?


void dataGridView1_CellPainting(object sender,
System.Windows.Forms.DataGridViewCellPaintingEventArgs e){


if (e.ColumnIndex < 0)


{


if (e.RowIndex >= 0)


{


backColorBrush = new SolidBrush(e.CellStyle.BackColor)


e.Graphics.FillRectangle(backColorBrush, e.CellBounds);


e.Graphics.DrawIconUnstretched(_icon, e.CellBounds);


e.Handled = true;


}



}
}


Could anyone please help me with this.

upon doing the above, i am able to get the icons displayed in the row
headers of the datagrid but was unable to draw the borders of the
headerrowcell.


I would like to get back the default row header cell border style. How
do i do that in the CellPainting event?


AdjustBorderStyle() does not work, any ideas?

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.