This is a migrated thread and some comments may be shown as answers.

Grid Doc's mistake

3 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
hchattaway
Top achievements
Rank 1
hchattaway asked on 11 Jul 2007, 07:46 PM
Hello

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

private void RadGrid1_ItemDataBound(object sender, Telerik.WebControls.GridItemEventArgs e) 
 if ( e.Item is GridGroupHeaderItem ) 
 { 
  GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item; 
  DataRowView groupDataRow = (DataRowView)e.Item.DataItem; 
 
  //Clear the present text of the cell 
  item.DataCell.Text = ""
  foreach( DataColumn column in groupDataRow.DataView.Table.Columns) 
 
  //Check the condition and add only the field you need 
  if ( column.ColumnName == "Country" ) 
  { 
   item.DataCell.Text += "Customized display - Country is " + groupDataRow 
   ["Country"].ToString(); 
  } 
 } 
 


Thought you might want to know!
Harold

3 Answers, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 12 Jul 2007, 09:13 AM
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
0
hchattaway
Top achievements
Rank 1
answered on 12 Jul 2007, 01:18 PM
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

0
Dimitar Kapitanov
Telerik team
answered on 12 Jul 2007, 01:42 PM
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
Tags
GridView
Asked by
hchattaway
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
hchattaway
Top achievements
Rank 1
Share this question
or