I add dynamic row in DataTable.I need to bold the "Total" in Bold.How to do this?
DataTable dt = new DataTable();
dt.Rows.Add(new object[] { "", "Total", "valuehere"});
I add dynamic row in DataTable.I need to bold the "Total" in Bold.How to do this?
DataTable dt = new DataTable();
dt.Rows.Add(new object[] { "", "Total", "valuehere"});
Typically text formatting is done wherever the code for displaying the text is. A string does not contain that sort of formatting information usually.
Carlos is right.
At the max you can try getting your text from database with tag as follows, which might help you.
DataTable dt = new DataTable();
dt.Rows.Add(new object[] { "", "<b>Total", "<b>valuehere"});
You can bold the Object in which you are displaying this datatable values.
Eg. Label, gridviewcells,etc