Click here to Skip to main content
15,914,162 members

Comments by Anuj Mehta (Top 17 by date)

Anuj Mehta 25-Jan-19 5:30am View    
I Added it for Just checking code.

Without converting result is same (no change)
double Upper = 1.8415;
double meanObject = Math.Round((Upper), 3);

Result = 1.841
Anuj Mehta 3-Nov-17 1:54am View    
I want to Set Width of Columns Name & Value Like this,

COl-1(Verry Small)|COl-12(Big) | COl-3(Medium) | COl-4(Verry Small)| COl-5(Med)
Anuj Mehta 3-Nov-17 1:46am View    
yes Sure done..
Anuj Mehta 3-Nov-17 1:32am View    
I tried
property like width and rowspan is not working
Anuj Mehta 27-Oct-17 6:22am View    
 thank you very much its working using your code 

  for (int i = 0; i < dt2.Columns.Count; i++)
                        {
                            string width = i == 0 ? "2" : "1"; // first column will be 50% and others 20%
                            sb.Append("<td colspan=" + width + " rowspan='0' style = 'background-color: #e7e7e7;color:#000000'>");
                            sb.Append(dt2.Columns[i].ColumnName);
                            sb.Append("</td>");
                        }