Hi,
Please bind your grid as below.
DataSet ds = GetExpenseName();
if(ds!=null&&ds.Table[0].Rows.count>0)
{
for(int i=0;i<ds.table[0].rows.count;i++)>
{
GridViewName.Column[i].HeaderText = ds.Table[0].Row[i]["ExpenseNames"].ToString();
}
}
Hope this will help you.