How to hide a row in a data grid in VB.NET 2003 ?
Printable View
How to hide a row in a data grid in VB.NET 2003 ?
Have a look here, may help?
Thanks.But Its in a web app (ASP.NET).I need this functionality in a windows form.
Did you try:
Where x is the index of the row you want hidden?Code:DataGridView1.Rows(X).Visible = False
I can't find DataGrid.Rows property ?:confused:
its in vb.net VS 2003
Did you try that one ?;)
DataGridView has that property but im not sure DataGrid does.
Try DataGrid.Item(x)
My mistake, I missed that it wasn't a DataGridView. That's what not paying attention gets you.
Got it solved in a different way..thanks anyways.
How did u do it, if you dont mind. Would be good to know for future reference?!
I've added a new column as IsVisible to the main table and as per my condition made to have values True or false
Then impoted only those rows which has a value of True in InVisible column to a new datatable and made it the source of grid.
Sounds like a plan! Good luck! :)