I need some code to copy the datagridview data to a richtextbox in C#.
The information must be displayed in a neat table with borders visible and all information centered in all cells. The column headers must be present.
The code below allows to copy and paste the datagridview but without any border/centered cells…
[login to view URL]();
[login to view URL]([login to view URL]());
[login to view URL]("rn" + [login to view URL]());
[login to view URL]();
[login to view URL] = text;
The datagridview must appear in the richtexbox formatted with border.
The methods should be usable with all datagridviews and should be used as follow:
[login to view URL] = methodRequired(datagridview);