GV is the front-end gridview, which is used to display duplicate columns in a row such as 5, 5, and 5.
Datatable dt = new datatable ();
DT. Columns. Add ("analysevalue", typeof (string ));
Datarow DR = DT. newrow ();
Dr [0] = "5 ";
DT. Rows. Add (DR );
Dr = DT. newrow ();
Dr [0] = "2 ";
DT. Rows. Add (DR );
Dr = DT. newrow ();
Dr [0] = "3 ";
DT. Rows. Add (DR );
Dr = DT. newrow ();
Dr [0] = "4 ";
DT. Rows. Add (DR );
Dr = DT. newrow ();
Dr [0] = "5 ";
DT. Rows. Add (DR );
Dr = DT. newrow ();
Dr [0] = "5 ";
DT. Rows. Add (DR );
Dataview DV = DT. defaultview;
DV. Sort = "analysevalue ";
Datatable dt2 = DV. totable (true );
Foreach (datarow DR2 in dt2.rows)
{
datarow [] FDR = DT. select ("analysevalue = '" + DR2 [0]. tostring () + "'");
int c = FDR. length;
string STR = "";
for (INT I = 0; I {
STR + = DR2 [0]. tostring () + ",";
}< br> DR2 [0] = Str. trim (',');
}< br> GV. datasource = dt2;
GV. databind ();