Dab tsi yog BoundField hauv GridView hauv ASP NET?
Dab tsi yog BoundField hauv GridView hauv ASP NET?

Video: Dab tsi yog BoundField hauv GridView hauv ASP NET?

Video: Dab tsi yog BoundField hauv GridView hauv ASP NET?
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Kaum ib hlis
Anonim

GridView yog ib asp . net server tswj uas tuaj yeem tso saib qhov tseem ceeb ntawm cov ntaub ntawv hauv lub rooj. BoundField yog lub default kem hom daim phiaj saib server tswj. BoundField tso saib tus nqi ntawm ib daim teb raws li cov ntawv hauv daim phiaj saib . daim phiaj saib tswj zaub a BoundField khoom ua ib kem.

Ib yam li ntawd, TemplateField hauv GridView yog dab tsi hauv ASP NET?

MuthuMari M. Nyob zoo, The GridView yog tsim los ntawm ib pawg ntawm cov teb uas qhia tias cov khoom dab tsi los ntawm DataSource yuav tsum tau muab tso rau hauv cov zis tso tawm nrog rau yuav ua li cas cov ntaub ntawv yuav tshwm sim. Hom teb yooj yim tshaj plaws yog BoundField, uas qhia cov ntaub ntawv tus nqi raws li cov ntawv nyeem.

Ib yam li ntawd, qhov txawv ntawm BoundField thiab TemplateField hauv GridView yog dab tsi? 3 Teb. Boundfield yog ib kem khi ncaj qha mus rau datasource (kem hauv a DB). Siv thaj tsam kom yooj yim tso saib db kab, siv TemplateField ua ib yam dab tsi ntau zoo nkauj xws li concatenate 2 db kab ua ib leeg daim phiaj saib kem lossis ntxiv qee cov ntawv nyeem / piav qhia / para rau daim phiaj uas yuav tsis tuaj ntawm db.

Tom qab ntawd, lo lus nug yog, GridView yog dab tsi hauv ASP NET?

Cov GridView tswj yog ib tug feature nplua nuj thiab ntau yam kev tswj siv los txais, tso saib, thiab kho cov ntaub ntawv ntawm nplooj ntawv web. Nws yog ib tug nquag siv tswj nyob rau hauv ASP . Net web applications. Yuav siv a GridView tswj ib DataSource tswj yuav tsum tau txuas nrog rau GridView tswj.

Koj zais ASP BoundField li cas?

Koj ua tau zais a BoundField yam khoom nyob rau hauv cov ntaub ntawv-txheej tswj los ntawm kev teeb tsa cov cuab yeej pom pom tsis tseeb. Txhawm rau tiv thaiv tus nqi ntawm daim teb los ntawm kev hloov kho hauv hom hloov kho, teeb tsa cov cuab yeej ReadOnly kom muaj tseeb.

Pom zoo: