I’m trying to hide empty gridview columns. My C# books don’t talk about doing this so I’ve done a bit of googling and tried the following
Results.DataSource = myDATAview;
Results.DataBind();
//if (Results.Columns == null)
// if (myDATAset.Tables[0] == null)
// if (Results.Columns.Count > 0)
if (Results.Columns.Equals(""))
{
Results.Columns[0].Visible = false;
}
None of this worked or threw any errors.
Am I on the right track or way off?

New Topic/Question
Reply



MultiQuote





|