Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1965
Setting the width of child grid
posted

Hey,

I have this event for binding child grid to the row which is clicked to expand.

void whdgData_RowIslandsPopulating(object sender, ContainerRowCancelEventArgs e)
{
e.Cancel = true;

int ID = Convert.ToInt32(e.Row.DataKey[0]);
DataView dvTest = new DataView(dsData.Tables["Details"], "ID ="+ID, "", DataViewRowState.CurrentRows);

ContainerGrid childGrid = new ContainerGrid();
e.Row.RowIslands.Add(childGrid);

childGrid.DataSource = dvTest.ToTable();
childGrid.DataBind();
//childGrid.Columns[2].Width = 100;
//childGrid.Columns[2].Header.Text = "Date";
}

I have to format the grid header and widths of the child grid. Please help with that.

I have tried e.Row.RowIslands[0].Columns.count but it is 0. Somebody please help on setting the width and header text for this container grid.

Thanks and Regards,

Parthiban Sekar

Parents
No Data
Reply
  • 29417
    Offline posted

    Hello Parthiban, 

    I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://ko.infragistics.com/support

     

Children
No Data