Hi all i am having a text file which consists of some data and each and every line in that particular is fixed to 94. Now when the user opened the particular text file and if my condition satisfies i will show it to datagridview. But when displaying to datagridview even the length of each and every line is 94 the content displaying in grid varies why it is happening . How to make sure that each and every row in datagridview should be displayed in a constant way

Any idea please
You’re using a non-proportional font in the grid, which means that not all characters have the same size. F.e. spaces are way shorter then the 0. Use a proportional font, and the lines will be the same length.
Edit: Let’s have a look at an example:
As you can see, in a proportional font (like your IDE is most likely using) every characters has the same width. In a non-proportional font (like your text-processor is most likely using by default) the characters are varying in width, making the
ione of the ‘thinest’ and theOone of the ‘widest’ characters.