Lets Have a fun with Technology.

BTemplates.com

Follow by Email

Saturday, October 18, 2008

GridView


->  The Gridview Is Very Power full Server Control to Display Data From Data Source.

-> DataGrid is Very easy to use and Flexible Control.

-> You Can Use Inbulit format which Provide by GridView Or you Can Also dispaly Gridview as You Likes.

-> You Can Perform Any Action With Gridview Data (edit,Delete,Add ,ect ...)

-> You Can Use Itemtemplet To dispaly Data In formated Manner.Or Used Any Control in Gridview.

-> Gridview is easy to used and Provide many Facility Like PageIndexchannging Which Difficult in DataList but Gridview make it's easy.

-> You Can make Any Good Formating in Header and Footer Or also Can Add Custom 2-3 Header By making code in ItemCreated Events.

-> Simple Exmaple to Bind a Gridview

    con.Open();
        DataSet data = new DataSet();
        SqlDataAdapter sda = new SqlDataAdapter("select * from tbale_name", con);
        sda.Fill(data);
        dl_saved_can.DataSource = data;
        dl_saved_can.DataBind();
        con.Close();
 
PageIndexChanging Event
 
 
        grd_forward_you.PageIndex = e.NewPageIndex;
        Bind_Grid(); //Bind Data


This Is Just simple example How Ever you can do anything with gridview data And also 
Dispaly data In Professional Style.


What you Say About Gridview ??

Prev Post                                                      All Post                                                           Next Post




2 comments:

  1. ASP.Net 2.0 Nested Gridview Video

    http://in.youtube.com/watch?v=Qc53ZekBryE

    ReplyDelete