All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
I was new to telerik. I want to hide columns in radgridview which column all cells are null values by programmatically.
thanks
private
void
RadButton1_Click(
object
sender, EventArgs e)
{
foreach
(var col
in
radGridView1.Columns)
bool
valueFound =
false
;
(var row
radGridView1.Rows)
if
(row.Cells[col.Name].Value !=
null
&& row.Cells[col.Name].Value != DBNull.Value)
true
break
}
col.IsVisible = valueFound;