C ) DATA CONTROL GRIDVIEW (Boundfield_TemplateField_Connectioncode) + Gridview Footer Row
* DATA CONTROL *
* Data control is use to display data in form of visualization.
* Controle Name
- Gridview Control
- Repeater Control
- Formview Control
- Datalist Control
- Detailview Control
- Listview Control
Only two propeties of Data Controls
* GRIDVIEW CONTROL *
Q ) How to add Gridview control
Step :- Dotnet -- website -- create page -- toolbox -- data category(gridview)
Q ) How to connect database column in Gridview
:- There are two method is use to connect database column in gridview
1 ] Using Boundfield Method
Step :- Dotnet -- design -- clickgridview -- click [>] -- Edit column -- Boundfield --properties 1 ) Header text 2 ) DatatextField -- ok
* There are Two properties
1 ) Header text 2 ) DatatextField
2 ] Using Template Method
Step :- Select grid -- [>] -- edit column -- template field -- properties :-- header --ok
* There are One properties
1 ) Header text
Q ) How to remove gridview Extra column
Step :- Select grid -- edit column -- [untick] auto generate field -- ok
Q ) How to set Gridview Colur Format
Step :- Select gridview -- [>] -- Auto format -- select a border font scene -- ok
Q ) How to use control inside the Gridview
:- using templatefield add control inside the gridview
Step 1 :- select gridview -- goto source -- find out your TemplateField Tag
Step 2 :- <templatefield> </templatefield>
Step 3 :- <templatefield> textbox,label,button,checkboc etc.. </templatefield>
* GRIDVIEW (Boundfield_TemplateField_Connectioncode) *
* Gridview Footer Row *
Q ) How to show Gridview Footer
Step :- select gridview -- goto the source -- use show footer atribute in gridview -- <Gridview ShowFooter="true" > tag
Q ) How to display data in a footer
Syntax :- Gridview1.Footerow.Cells[column
position].Text = "any name" ;
Code :- GridView1.FooterRow.Cells[1].Text="total amount" ;
* Gridview starting column position (Cells) is 0 ,1,2,3
* How to add footer in gridview Code and source step *
Comments
Post a Comment