简体   繁体   中英

How to bold DataRow in c#?

I added new DataRow in my DataSet like this:

if(ds.Tables["Report"].Rows.Count != 0) 
{
    DataRow row = ds.Tables["Report"].NewRow();
    row["NAME"] = "Sum:";
    row["NAME_RJ"] = String.Empty;
    row["SUM1"] = sum1;
    row["SUM2"] = sum2;
    ds.Tables["Report"].Rows.Add(row);
}

Any idea how to bold this DataRow ?

You can't do bold to DataRow in DataTable . You need to do this where you are binding DataTable like GridViews , DataLists etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM