Wednesday, May 9, 2012

DataGridViewButtonColumn Text Won't Show

This post has moved along with the rest of this blog to WordPress please go to this link here: http://obscureproblemsandgotchas.com/uncategorized/datagridviewbuttoncolumn-text-wont-show/

2 comments:

  1. does not work for me. I have a datagridview with a button column. table is empty and is populated by user. New row appears when previous row is populated with any data. No text appears on buttons at any time. the text that should appear is set in button.text property and is equal to "..." (as it opens a file dialog). i must mention that i dont't have any datasets due to a complex table (type of cells are generated based on other cell values etc..) and my lack of knowledge in C#

    ReplyDelete
  2. Hi - I migrated my blog to wordpress. I will have trouble helping you without knowing what it is that you are doing exactly. Do the following test: 1. Add dummy data to your datasource, 2. The text should appear, but if it doesn't there is a different problem. -- where do you set your button text? On page load? I recommend setting it from the markup so it is always there if you can.

    ReplyDelete

Note: Only a member of this blog may post a comment.