Bound Datagridview To Accept Multiple Data Types in a single column

  • Thread starter Thread starter Ash.22
  • Start date Start date
A

Ash.22

Guest
Hello, is there a way to make a single column in a bound datagridview accept multiple data types? I have a "MValue" column that can have either integers or text or both. My source file is an Excel file. Apparently whenever I am loading the contents of my Excel file to a dgv, the texts show as blank. I tried:


1. Creating a new file with just the string "EMPTY" in that column - formatted as text (didn't work), formatted as general (didn't work)
2. Tried using a copy of the file (copy file then paste to use copy of the file itself and not copy paste the contents to a new sheet) - formatted to text (didn't work), formatted to general (didn't work)


Any ideas?

Continue reading...
 
Back
Top