We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl - RecordPreviewCell Width Problem with columns customization

Thread ID:

Created:

Updated:

Platform:

Replies:

44517 May 25,2006 01:37 PM UTC May 25,2006 03:11 PM UTC WinForms 1
loading
Tags: GridControl
Badri Rajani Kanth
Asked On May 25, 2006 01:37 PM UTC

Hi, We are using syncfusion V3.2.1.0. Our grid has RecordPreviewRow and customizable column display. For example, when I display 3 columns, I see RecordPreviewRow taking more width than all the 3 columns together. And Preview also gets displayed in two cells in RecordPreviewRow. But when I manually drag the columns and increase the width, then RecordPreviewRow displays only one single preview cell, which is correct behaviour. When I display 6 columns also it is fine. But I dont want to increase the columns width, as they are always fixed (NOT ALL of equal size, and I dont want to in display full available area). When I icrease/decrease the columns number, i want to see the column header width changing and RecordPreviewRow getting adjusted, with only one preview cell per RecordPreviewRow. How I do this? Rgds Rajani Kanth

Badri Rajani Kanth
Replied On May 25, 2006 03:11 PM UTC

Hi, This solution is working fine. private void TableModel_QueryColWidth(object sender, GridRowColSizeEventArgs e) { if(e.Index < gridGroupingControl.TableModel.ColCount) { GridColumnDescriptor gridColumnDescriptor = gridGroupingControl.TableModel.GetHeaderColumnDescriptorAt(e.Index); if( (gridColumnDescriptor != null) && (mGridColumnsText.Contains(gridColumnDescriptor.HeaderText))) { //dont change size e.Handled = true; } } else { e.Size = 0; e.Handled = true; } } Plz inform me if any thing wrong with the above code. Rgds Rajani Kanth

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;