Link to home
Start Free TrialLog in
Avatar of poogie22
poogie22

asked on

how to hide a particular row in a data table

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.
Avatar of jeebukarthikeyan
jeebukarthikeyan
Flag of India image

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
Avatar of poogie22
poogie22

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of jeebukarthikeyan
jeebukarthikeyan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi,
can you please give me the code.
i tried my self but couldnt.please give me the codes in detail.
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.