c# - How can i create/build columns for richTextBox to act like in listView? -


i can use example method create cells , rows on richtextbox that's not close want.

i want able add/assign text column row in listview , able click @ top on each column name.

private void settabletorichtextbox() {     //since string appending go string builder     stringbuilder tablertf = new stringbuilder();      //beginning of rich text format,dont customize begining line                   tablertf.append(@"{\rtf1 ");      //create 5 rows 3 cells each      (int = 0; < 10; i++)     {          tablertf.append(@"\trowd");          //a cell width 1000.         tablertf.append(@"\cellx1000");          //another cell width 2000.end point 3000 (which 1000+2000).         tablertf.append(@"\cellx3000");          //another cell width 1000.end point 4000 (which 3000+1000)         tablertf.append(@"\cellx4000");          tablertf.append(@"\intbl \cell \row"); //create row      }      tablertf.append(@"\pard");      tablertf.append(@"}");      this.richtextbox1.rtf = tablertf.tostring(); }