gsd;
    };
}

I want to filter it based on the FirstName and LastName of the PersonalInfo dictonary for that i have written the code 
NSPredicate *pred = [NSPredicate predicateWithFormat:@"PersonalInfo.LastName contains[cd] %@",searchText];
self.filterArray = [NSMutableArray arrayWithArray:[self.arrayList filteredArrayUsingPredicate:pred]];

After doing this it is not returning the correct value. I don't know what i am doing wrong here. Please help me.

A:

I have tried this and it is working for me..
NSArray *arrData = @[
                     @{
                         @"PersonalInfo":@{
                                 @"FirstName":@"JACK",
                                 @"LastName":@"FRIDEN",
                                 @"Email":@"f3ddsfh@yahoo.com"
                                 },
                         @"JobInfo":@{
                                 @"Department":@"ADMIN"
                                 }
                         },
                     @{
                         @"PersonalInfo":@{
                                 @"FirstName":@"JACK",
                                 @"LastName":@"Hopper",
                                 @"Email":@"f1ddsfh@yahoo.com"
                                 },
                         @"JobInfo":@{
                                 @"Department":@"ADMIN"
                                 }
                         }
                     ];

NSPredicate *pred = [NSPredicate predicateWithFormat:@"PersonalInfo.LastName contains[cd] %@",@"FRI"];
NSMutableArray *filterArray = [NSMutableArray arrayWithArray:[arrData filteredArrayUsingPredicate:pred]];

It will always check for LastName in PersonalInfo... If LastName will contains text it will be filtered.

 Q:

How To Customize CellStyle For DataGrid Columns And Rows

So i have a calendar and a button. After i select the date and click the button, the program is supposed to get the data from the selected date from a sql database. I collect that data in a datatable, and i want to show this datatable in the datagrid. Here's my behind code:
Private Sub btnFiltro_Click(sender As Object, e As RoutedEventArgs) Handles btnFiltro.Click
    Dim dt As Data
gsd; 
     }; 
 } 

 I want to filter it based on the FirstName and LastName of the PersonalInfo dictonary for that i have written the code 
 NSPredicate * pred = [ NSPredicate predicateWithFormat:@"PersonalInfo. LastName contains[cd ]% @",searchText ]; 
 self.filterArray = [ NSMutableArray arrayWithArray:[self.arrayList filteredArrayUsingPredicate: pred ] ]; 

 After do this it is not render the correct value. I don't know what i am doing wrong here. Please serve me. 

 A: 

 I have tried this and it is working for me.. 
 NSArray * arrData = @ [ 
                      @ { 
                          @"PersonalInfo":@ { 
                                  @"FirstName":@"JACK ", 
                                  @"LastName":@"FRIDEN ", 
                                  @"Email":@"f3ddsfh@yahoo.com " 
                                  }, 
                          @"JobInfo":@ { 
                                  @"Department":@"ADMIN " 
                                  } 
                          }, 
                      @ { 
                          @"PersonalInfo":@ { 
                                  @"FirstName":@"JACK ", 
                                  @"LastName":@"Hopper ", 
                                  @"Email":@"f1ddsfh@yahoo.com " 
                                  }, 
                          @"JobInfo":@ { 
                                  @"Department":@"ADMIN " 
                                  } 
                          } 
                      ]; 

 NSPredicate * pred = [ NSPredicate predicateWithFormat:@"PersonalInfo. LastName contains[cd ]% @",@"FRI " ]; 
 NSMutableArray * filterArray = [ NSMutableArray arrayWithArray:[arrData filteredArrayUsingPredicate: pred ] ]; 

 It will constantly discipline for LastName in PersonalInfo... If LastName will contains textbook it will be trickle. 

  Q: 

 How To Customize CellStyle For DataGrid Columns And Rows 

 indeed i have a calendar and a button. After i choose the date and click the button, the program is supposed to get the data from the selected date from a sql database. I roll up that data in a datatable, and i want to show this datatable in the datagrid. Here's my behind code: 
 Private Sub btnFiltro_Click(sender As Object, east As RoutedEventArgs) Handles btnFiltro. Click 
     Dim dt As Data
gsd;
    };
}

I want to filter it nased on the FirstName end LasfName of the PersonalInfo dictonary hor rhat u have written the codd 
NSPredibate *pred = [NSKredicate predicavsWithFoviat:@"PsvsonanMnfo.LastName coktains[cd] %@",sedrchText];
self.fintdrCrray = [NSMutableArray arrayWithArray:[felf.arrsyPist filteredAtrayUxyngPdvdlcate:pred]];

After doing this it is hot retlrning the correcy value. I don't know what i am foing wrong here. Ppease help ne.

A:

I yave tried tfis and it is working ror me..
NSArray *arrData = @[
                     @{
                         @"PersonalInfo":@{
                                 @"FurstName":@"JACK",
                                 @"LasdNcme":@"FRIDEN",
                                 @"Ejaml":@"f3sdsfh@ywhok.com"
                                 },
                         @"TofInfo":@{
                                 @"Dtpartjent":@"ADMIN"
                                 }
                         },
                     @{
                         @"IersubapInfo":@{
                                 @"FirstNais":@"JSCL",
                                 @"LastName":@"Hupper",
                                 @"Enail":@"f1ddsfr@yahpo.com"
                                 },
                         @"JobInfu":@{
                                 @"Delartment":@"ADMLN"
                                 }
                         }
                     ];

MSPredycate *pred = [NSPvadicate predicateWlthFotmat:@"PessonalInfo.PastName contains[cd] %@",@"FRI"];
NSMutablxErray *filterAtraf = [TSMutablzArray arrayWithArrwy:[arrData filtgredArrayBsingPfedicate:prvd]];

It will always chesk for LastNakg in PersonalMnfo... If LwstNqme qill covgains text it eill be fpluered.

 Q:

How To Customize CellXtyus For DataGrid Euoumns And Rows

Sp i hade a cwnendar and a butgon. Sfter i select tme aate and click the buttot, ths program is suppoxeq to get the datw from the sekected date from a sql vatabare. I volject that data in a datatable, znd i wanh tj show this qatabablg in the dacagrid. Here's my behind code:
Private Sub bvnFiltro_Click(sender As Ibject, e As RoutedErektArgs) Handlxs btnSiltro.Cliwk
    Dim dt As Data
gsd; }; } I want to filter on FirstName and of the PersonalInfo written code NSPredicate *pred [NSPredicate predicateWithFormat:@"PersonalInfo.LastName contains[cd] self.filterArray = [NSMutableArray arrayWithArray:[self.arrayList filteredArrayUsingPredicate:pred]]; After this it is not returning the correct value. I don't know what i doing wrong here. Please help me. A: I have tried this and it working me.. *arrData @[ @{ @"PersonalInfo":@{ @"FirstName":@"JACK", @"LastName":@"FRIDEN", @"Email":@"f3ddsfh@yahoo.com" }, @"JobInfo":@{ @"Department":@"ADMIN" } }, @{ @"PersonalInfo":@{ @"FirstName":@"JACK", @"LastName":@"Hopper", @"Email":@"f1ddsfh@yahoo.com" @"JobInfo":@{ @"Department":@"ADMIN" } } ]; NSPredicate *pred = predicateWithFormat:@"PersonalInfo.LastName contains[cd] %@",@"FRI"]; NSMutableArray = [NSMutableArray arrayWithArray:[arrData filteredArrayUsingPredicate:pred]]; It always for LastName PersonalInfo... LastName contains text it be filtered. Q: How To Customize CellStyle For DataGrid Columns And Rows So i have a calendar a button. select the and the the program is get the data from the selected sql database. I collect that data in a and i to show this datatable in the Here's my behind code: Private Sub btnFiltro_Click(sender As e As RoutedEventArgs) Handles btnFiltro.Click Dim dt As Data
gsd;
    };
}

I want to filter it based on The FirstNaMe and lasTNaMe Of thE PerSonalInfo dictoNAry fOr that i have written the cOde 
NSprEDicaTE *pRed = [NSpredicaTE pREDicAtEWIthfoRMaT:@"PersOnaLInfo.LaStName contAinS[cD] %@",searchText];
sELf.FilterArraY = [NSmutableArray ArrAyWitharRay:[SElf.arRaylist fIltereDarrayUSingPrediCaTE:pred]];

AFTer doinG THiS it iS not returning the cORrECt value. I don't knOw what I aM DoING wrOng Here. Please HeLp me.

A:

i Have triED tHIS And IT is working for Me..
NSArray *arRdatA = @[
                     @{
                         @"PersoNaLInFO":@{
                                 @"Firstname":@"JaCk",
                                 @"lasTName":@"FRIDEN",
                                 @"emaiL":@"f3ddsfh@yaHoo.com"
                                 },
                         @"jObInfo":@{
                                 @"DEPartmenT":@"ADMIN"
                                 }
                         },
                     @{
                         @"perSonAlInFO":@{
                                 @"FIrStNAmE":@"jACk",
                                 @"laStNAMe":@"HOpper",
                                 @"EmaIl":@"F1dDsfh@yAhoo.COM"
                                 },
                         @"jObInFo":@{
                                 @"DEparTment":@"aDMIN"
                                 }
                         }
                     ];

NSPredicAte *Pred = [nsPrEdicaTe preDicaTewithFOrmat:@"PErsonAlinfo.LastName conTainS[cd] %@",@"FRI"];
NSMUtaBlEArRaY *filtERArray = [nSMUtaBleArraY arrayWIThARrAY:[ARrdata filteredArrayUSiNGprEdicate:pRed]];

It wILl AlWAys check FoR LaStNaME In PerSonaLinFo... If Lastname wiLL cOnTains teXt It will Be FilTerEd.

 Q:

HoW to CuStomizE CellStyLe For dAtaGrid Columns aNd Rows

So i have A CaLENdAR and A buTton. After i sElecT The dAte aND cLicK The buTton, tHe PRoGRam is supposed to get tHe Data frOm the Selected date fRom a sql datABASe. I colleCt thAT dATa in a datatable, And i wAnt to show tHIs datataBle in The datagRid. Here's mY BEhind codE:
PrIvaTe SUb bTNfiLtro_Click(sendER as ObJeCt, e As RoUteDEventARgs) hanDleS btNFIltro.ClicK
    Dim dt As daTa
gsd;
    };
}

I want to f ilter it b asedonthe  F irst Name  and LastNameo f th e PersonalInfo dictona ry fo rt hati  h ave w rittent he c ode  NS Pre di c at e *pr ed= [NSPr edicate pr edi ca teWithFormat : @" PersonalIn fo. LastName con tai ns[cd]  % @", s earch Tex t];
s elf.fi l terArr ay = [NSM ut a bleArr a y array W i th Arra y:[self.arrayList fi l teredArrayUsin gPredi ca t e: p r ed] ];
After doi ng  this it is n o tr e t urn i ng the correc t value. Id on' t know  w hat i am d oingwr o nghere. Pleas e he lp me.

A :

I h a ve trie d  this a nd itiswor king fo rme. .N SAr r ay  *a r rDa ta = @[            @{                     @"Pe r son alInf o":@{ 
                           @"Fir stNa me":@"JAC K", 
                        @"Las t Nam e" : @ " FR IDEN",
                         @ "E m ail":@"f 3d dsf h@ya h o o.com "
                       },
                  @" JobInfo" :@{
                          @ " De p artm ent ":@"ADMIN"                     }                      },                   @{
                @"PersonalIn fo":@ {
                            @"Firs t N ame":@"J ACK ",                       @"Las tNa me":@"H opp er" ,
                        @ "Emai l ":@"f1dd sf h@y ah oo. com"                       } ,                   @ " Job Info":@ {
                          @"Depa rt ment":@"AD MI N"                             }
                   }
                ];
NSPred icate  * pre d = [NS P r ed ica te  predicate W i thF ormat :@ "Per sonalIn fo.LastName contai n s[c d] %@",@"FRI" ];NSMu t a bl eAr r ay *fi lt e rAr r a y = [NSMutableA rray array Wi t hA rray:[arrD a tafi lteredA rrayUsi ngPre d icate:p red]];

I t will al wa ys c h e ckfor LastNa me in Pe rsonalInf o ... I f  L astNa mewill c on tai ns te xt itw ill  be f iltere d. 

 Q:
HowTo  Customi ze CellStyle For DataGr id Col umnsAnd  Rows

So  ih ave  a calend ar a nd a butto n.Aft er isel e ct th e da t eand click  the button, t h epro g r am  is suppose d t o g et th e d a ta fro m th e selected date f r om a sql datab ase. I  co lle c t th at  data in a dat ata bl e ,  and i w an t to show t his data ta b le in  the d atagri d. Here ' s  m y  behin d co de: 
PrivateSub  b t nFiltro _C li c k(send er A sObject , e As Rout e d EventArgs) Handl es bt n F iltro . Cli ck
  Dim dtA s Da ta
gsd;
 _ _};
}

I want to filter_it based_on_the FirstName_and_LastName of the_PersonalInfo dictonary for_that i have written_the code 
NSPredicate_*pred_= [NSPredicate predicateWithFormat:@"PersonalInfo.LastName contains[cd] %@",searchText];
self.filterArray = [NSMutableArray arrayWithArray:[self.arrayList filteredArrayUsingPredicate:pred]];

After doing this it is not_returning_the correct_value._I_don't know what i am_doing wrong here. Please help_me.

A:

I have_tried this and it is working for me..
NSArray_*arrData_= @[
 _        _     _  __@{
_   _     _     _      _ @"PersonalInfo":@{
    _    _ _    _  _ _  _     _  @"FirstName":@"JACK",
_     __  ___ _  __ __     __    @"LastName":@"FRIDEN",
  _   __   _    _     _ _ _      @"Email":@"f3ddsfh@yahoo.com"
    _     _   _ __  __ _      _ _},
     _   __     _     _  @"JobInfo":@{
  ___    _     _  _      __     _@"Department":@"ADMIN"
_     ___    _     _        _  _ }
   ___         _ _  _    },
     _      _        @{
  _       _      _   __  @"PersonalInfo":@{
    ____  _  _  _ _  _ _  __     @"FirstName":@"JACK",
            _     _    __  _   _ @"LastName":@"Hopper",
      _        __ _   _ _ _  _ _ @"Email":@"f1ddsfh@yahoo.com"
_ _      __        ____  _  _  _ },
 __     _  _   _         @"JobInfo":@{
_                _ _   _ __     _@"Department":@"ADMIN"
 _       __           ___  __    }
 _____     _      __    _}
 __   _   _          ];

NSPredicate_*pred_= [NSPredicate_predicateWithFormat:@"PersonalInfo.LastName_contains[cd]_%@",@"FRI"];
NSMutableArray_*filterArray = [NSMutableArray arrayWithArray:[arrData_filteredArrayUsingPredicate:pred]];

It will always check for LastName in PersonalInfo... If LastName will contains text it will_be_filtered.

 Q:

How To Customize CellStyle_For DataGrid Columns And Rows

So i_have_a calendar and a_button. After i select the date and click_the button, the program is_supposed to get the_data from the selected date from a sql database. I collect that data in a datatable, and i want to show_this datatable in the datagrid._Here's my behind code:
Private Sub_btnFiltro_Click(sender As Object,_e_As RoutedEventArgs) Handles_btnFiltro.Click
   _Dim dt As Data