Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
AnswerRe: Datagridview cell painting Pin
Henry Minute19-Mar-09 7:18
Henry Minute19-Mar-09 7:18 
GeneralRe: Datagridview cell painting Pin
Dan Neely19-Mar-09 8:02
Dan Neely19-Mar-09 8:02 
GeneralRe: Datagridview cell painting Pin
Henry Minute19-Mar-09 11:41
Henry Minute19-Mar-09 11:41 
GeneralRe: Datagridview cell painting Pin
Dan Neely20-Mar-09 5:36
Dan Neely20-Mar-09 5:36 
GeneralRe: Datagridview cell painting Pin
Henry Minute20-Mar-09 9:50
Henry Minute20-Mar-09 9:50 
GeneralRe: Datagridview cell painting Pin
Dan Neely20-Mar-09 10:12
Dan Neely20-Mar-09 10:12 
GeneralRe: Datagridview cell painting Pin
Henry Minute20-Mar-09 10:18
Henry Minute20-Mar-09 10:18 
AnswerRe: Datagridview cell painting Pin
Jake Myers29-Apr-09 22:34
Jake Myers29-Apr-09 22:34 
I don't know if you have gotten the answer you were looking for since posting, but this should give you what you want.

If you added the columns with the designer you can go to DefaultCellSyle in the column properties. Click the [...] button and change the Padding to the offset you want the cell content to be.

or you can use:
YourDataGridView.Columns[TheColumn].DefaultCellStyle.Padding = new Padding(Left, Top, Right, Bottom);


Inside a custom cell:
this.Style.Padding = new Padding(Left, Top, Right, Bottom);

GeneralRe: Datagridview cell painting Pin
Dan Neely30-Apr-09 8:41
Dan Neely30-Apr-09 8:41 
GeneralRe: Datagridview cell painting Pin
Jake Myers1-May-09 4:20
Jake Myers1-May-09 4:20 
GeneralRe: Datagridview cell painting Pin
Dan Neely1-May-09 4:37
Dan Neely1-May-09 4:37 
GeneralRe: Datagridview cell painting [modified] Pin
Jake Myers1-May-09 5:06
Jake Myers1-May-09 5:06 
QuestionUnlocking account in AD Pin
Jacob Dixon18-Mar-09 7:53
Jacob Dixon18-Mar-09 7:53 
QuestionHelp understanding C# sockets Pin
John Joger18-Mar-09 7:47
John Joger18-Mar-09 7:47 
AnswerRe: Help understanding C# sockets Pin
John Joger21-Mar-09 16:23
John Joger21-Mar-09 16:23 
QuestionXML root element changes after manipulating XML file. Need help. Pin
shira_me18-Mar-09 7:39
shira_me18-Mar-09 7:39 
AnswerRe: XML root element changes after manipulating XML file. Need help. Pin
bgato2k618-Mar-09 11:02
bgato2k618-Mar-09 11:02 
QuestionHow old is F# ? Pin
Mohammad Dayyan18-Mar-09 7:29
Mohammad Dayyan18-Mar-09 7:29 
AnswerRe: How old is F# ? Pin
Yusuf18-Mar-09 7:35
Yusuf18-Mar-09 7:35 
GeneralRe: How old is F# ? Pin
Mohammad Dayyan18-Mar-09 8:19
Mohammad Dayyan18-Mar-09 8:19 
GeneralRe: How old is F# ? Pin
Judah Gabriel Himango18-Mar-09 8:55
sponsorJudah Gabriel Himango18-Mar-09 8:55 
AnswerRe: How old is F# ? Pin
musefan18-Mar-09 7:35
musefan18-Mar-09 7:35 
GeneralRe: How old is F# ? Pin
Ravadre18-Mar-09 7:50
Ravadre18-Mar-09 7:50 
GeneralRe: How old is F# ? Pin
0x3c018-Mar-09 7:57
0x3c018-Mar-09 7:57 
GeneralRe: How old is F# ? Pin
Ravadre18-Mar-09 8:07
Ravadre18-Mar-09 8:07 

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.