|
-
May 16th, 2008, 03:06 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Hide row in datagrid
How to hide a row in a data grid in VB.NET 2003 ?
-
May 16th, 2008, 03:26 AM
#2
Hyperactive Member
Re: Hide row in datagrid
Have a look here, may help?
-
May 16th, 2008, 03:32 AM
#3
Thread Starter
Fanatic Member
Re: Hide row in datagrid
Thanks.But Its in a web app (ASP.NET).I need this functionality in a windows form.
-
May 16th, 2008, 03:40 AM
#4
Lively Member
Re: Hide row in datagrid
Did you try:
Code:
DataGridView1.Rows(X).Visible = False
Where x is the index of the row you want hidden?
-
May 16th, 2008, 03:58 AM
#5
Thread Starter
Fanatic Member
-
May 16th, 2008, 04:09 AM
#6
Hyperactive Member
Re: Hide row in datagrid
DataGridView has that property but im not sure DataGrid does.
Try DataGrid.Item(x)
-
May 16th, 2008, 10:58 AM
#7
Lively Member
Re: Hide row in datagrid
My mistake, I missed that it wasn't a DataGridView. That's what not paying attention gets you.
-
May 22nd, 2008, 06:32 AM
#8
Thread Starter
Fanatic Member
Re: Hide row in datagrid
Got it solved in a different way..thanks anyways.
-
May 22nd, 2008, 06:58 AM
#9
Hyperactive Member
Re: [RESOLVED] Hide row in datagrid
How did u do it, if you dont mind. Would be good to know for future reference?!
-
May 22nd, 2008, 08:20 AM
#10
Thread Starter
Fanatic Member
Re: [RESOLVED] Hide row in datagrid
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.
-
May 22nd, 2008, 08:37 AM
#11
Hyperactive Member
Re: [RESOLVED] Hide row in datagrid
Sounds like a plan! Good luck!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|