Vuk Stanojevic

Vuk Stanojevic

  • 1.3k
  • 140
  • 45k

C# datagridview

Oct 11 2020 4:46 AM
Hi everyone,
i have datagridview with 10 different columns.
Each of this columns should be configured on different way.
For example:
1. Column[0] have imported string with 6 characters, but when i export this information i must get string with 26 characters; in this case 6 characters which are imported + 20 blan spaces, and this spaces must be added after last, 6th, character. 
2. Column[1] have imported 3 numbers, but when i export it i must get line with 5 numbers, where missing numbers will be 0,so for example once i export column[1] which is 123 i must get 1230
I hope that i was clear what i need.
I don't know if i should do this while importing data to datagrid or it can be done during export process.
 
Thank you. 

Answers (2)