Solved

how to hide a particular row in a data table

Posted on 2006-10-30
7
191 Views
Last Modified: 2006-11-23
how to hide a particular row in a data table

my codes are as follows:
      for (int i=0;i <= Pos+1;i++)
      {
      mainWindowTable.NewRow();
//      drBlank = mainWindowTable.NewRow();
      mainWindowTable.Rows.InsertAt(drBlank,Diff);
      Diff=Diff+1;
                Pos=Pos-1;
      }

in the above codes i am adding a set of new rows(drBlank) ,my question is how to make these set of new rows just added invisible.
0
Comment
Question by:poogie22
  • 4
  • 3
7 Comments
 
LVL 13

Expert Comment

by:jeebukarthikeyan
Comment Utility
hi,

u want to hide the newly added rows noto be displayed in any control
is it like that

b u d d h a
0
 

Author Comment

by:poogie22
Comment Utility
hi,
thanks for your reply.
yes i want to hide the set of rows(drBlank).this datatable is the datasource of a datagrid i dont want to display the above rows in the grid
0
 
LVL 13

Accepted Solution

by:
jeebukarthikeyan earned 500 total points
Comment Utility
hi,

u can get the added rows
DataSet DS = dataset2.GetChanges(DataRowState.Added)

create a dataview on the ds
System.Data.DataViewRowState.Added

b u d d h a
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:poogie22
Comment Utility
hi,
can you please give me the code.
0
 

Author Comment

by:poogie22
Comment Utility
i tried my self but couldnt.please give me the codes in detail.
0
 

Author Comment

by:poogie22
Comment Utility
what i intend to do is the newly added rows that is drBlank will be there but it will be hidden.i dont want to remove those rows i am adding blank invisible rows because my application was giving some error.
0
 
LVL 13

Expert Comment

by:jeebukarthikeyan
Comment Utility
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now