Hello,
Observe the code snippet below:
public class MyItem
{
public int value1 { get; set; }
public int value2 { get; set; }
public int?[] dateids {get;set;}
public MyItem()
{
dateids=new int?[4];
}
}
public class MyItems : CollectionBase
{
public int Add(MyItem item)
{
return List.Add(item);
}
public void Remove(MyItem item)
{
List.Remove(item);
}
public int IndexOf(MyItem item)
{
return List.IndexOf(item);
}
public MyItem this[int index]
{
get { return (MyItem)List[index]; }
set { List[index] = value; }
}
}
I set instance of MyItems to DataSource property of grid.
How do I assign dateids to grid's DataField?
Any workaround would be much appreciated
Thank you
Regards
Raj




function NestedTableCollapsing(sender, args) { var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); masterTable.rebind(); }<telerik:RadGrid Skin=Vista ShowGroupPanel="True" AllowFilteringByColumn="true" AutoGenerateColumns="false" AllowPaging="true" PageSize="20" AllowSorting="true" ID="grid1" runat="server" ClientSettings-Resizing-AllowColumnResize="true" OnDeleteCommand="RadGrid1_DeleteCommand"> <GroupingSettings CaseSensitive="false" /> <EditItemStyle BackColor=Green /> <MasterTableView GroupLoadMode="Server" DataKeyNames="service_provider_id" ClientDataKeyNames="service_provider_id,sp_email_og,sp_org_name"> <Columns>.... </Columns> <EditFormSettings EditFormType="WebUserControl" UserControlName="EditProfileDetail.ascx"> <EditColumn UniqueName="EditCommandColumn1"> </EditColumn> </EditFormSettings> </MasterTableView></telerik:RadGrid>