Grid Doc's mistake

4 posts, 0 answers
  1. hchattaway
    hchattaway avatar
    67 posts
    Member since:
    Feb 2007

    Posted 11 Jul 2007 Link to this post

    Hello

    In looking at this code in "customizing gridgroupheaderitem", i noticed that it is for the grid web control, NOT the winform control!

    1private void RadGrid1_ItemDataBound(object sender, Telerik.WebControls.GridItemEventArgs e) 
    2
    3 if ( e.Item is GridGroupHeaderItem ) 
    4 { 
    5  GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item; 
    6  DataRowView groupDataRow = (DataRowView)e.Item.DataItem; 
    7 
    8  //Clear the present text of the cell 
    9  item.DataCell.Text = ""
    10  foreach( DataColumn column in groupDataRow.DataView.Table.Columns) 
    11 
    12  //Check the condition and add only the field you need 
    13  if ( column.ColumnName == "Country" ) 
    14  { 
    15   item.DataCell.Text += "Customized display - Country is " + groupDataRow 
    16   ["Country"].ToString(); 
    17  } 
    18 } 
    19
    20 


    Thought you might want to know!
    Harold

  2. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 12 Jul 2007 Link to this post

    Hi hchattaway,
    We believe that in Q1 2007 SP2 release of our WinForms controls  help there are no code snippets remaining like the one you have found. We double checked this; please verify that you are using an earlier release of our controls.

    All the best,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. hchattaway
    hchattaway avatar
    67 posts
    Member since:
    Feb 2007

    Posted 12 Jul 2007 Link to this post

    ok, thanks! Got it...

    It would be great if subscribers could get an email blast when a SP is ready... I did not know it was just released..

    Thanks
    Harold

  5. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 12 Jul 2007 Link to this post

    Hi hchattaway,
    We will provide this option very soon. Until then you can aggregate the feed at http://www.telerik.com/support.rss
    which summarizes history for all telerik releases.

    Best wishes,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top