Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
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;