Hello
In looking at this code in "customizing gridgroupheaderitem", i noticed that it is for the grid web control, NOT the winform control!
Thought you might want to know!
Harold
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