1

i had created a custom checkbox cell and column just to display a text along with the checkbox. the custom paint gets the bounds and paints the string. the issue i have is, the checkbox is always @ center. and the text follows it. On the other hand, i want the checkbox to appear to the left corner and the text to follow it from there.

ioWint
  • 1,609
  • 3
  • 16
  • 34
  • can you show us some of your code ? – dada686 Jan 28 '10 at 10:51
  • Okay, i got it. I was setting the DefaultCellStyle of the dataGridview it had no effect. But while manually creating the checkbox column had a debug point to tell me that the defaultCellStyle.Alignment wasnt as i had set. I again set it to middle left and things worked perfect. Thanks! – ioWint Jan 28 '10 at 12:38

1 Answers1

4

Okay, i got it. I was setting the DefaultCellStyle of the dataGridview it had no effect. But while manually creating the checkbox column had a debug point to tell me that the defaultCellStyle.Alignment wasnt as i had set. I again set it to middle left and things worked perfect. Thanks!

ioWint
  • 1,609
  • 3
  • 16
  • 34