Table DataGrid the realization of the first interbank merger

  Following table DataGrid first graph    Title 1 Title 2 of Title 1 of Title 2 

  . Net in the following methods can be used to achieve the merger DataGrid interbank first column in Table: In the DataGrid ItemCreate by adding the following code in the incident. 

  Private void DataGrid1_ItemCreated (object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) 

  ( 

  If (e.Item.ItemType == ListItemType.Header) 

  ( 

  TableCellCollection tcl = e.Item.Cells; / / Table of the first examples of elements 

  Tcl.Clear ();// remove existing controls 

  Tcl.Add (new TableHeaderCell ()) / / add header Control 

  Tcl [0]. RowSpan = 2; / / definition of the head of the table the number of rows 

  Tcl [0]. Text = "Title 1"; 

  / / Next line 

  Tcl.Add (new TableHeaderCell ()); 

  Tcl [1]. ColumnSpan = 2; 

  Tcl [1]. Text = "Title 2 of Title 1 of Title 2"; 

  ) 

  ) 

Bookmark it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • DotNetKicks
  • DZone
  • Furl
  • Netvouz

Releated Articles

  • Popuklar Articles

0 Comments to “Table DataGrid the realization of the first interbank merger”

No Comments. Send your comment.

Leave a Reply

You must be logged in to post a comment.