need to change text in drop area

i am using Grid grouping control. in the Drop area where you drag the col. header the default is the Table name. I need to change the text

-hans

1 Reply

AD Administrator Syncfusion Team October 16, 2006 06:42 PM UTC

Hi Phillip,

Thanks for your interest in our products.

This can be achieved by handling the PrepareViewStyleInfo event of the GroupDropArea. In the event, the respective column and row index can be checked and accordingly its name can be changed. The following is the code snippet
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
//groupDropArea.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(groupDropArea_PrepareViewStyleInfo);
private void groupDropArea_PrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e)
{
if (e.ColIndex == 2 && e.RowIndex == 2)
{
-------
------------
e.Style.Text = "Syncfusion";
}
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Sample : GroupDropFormatting

KB article : GroupDropFormatting_KB

Have a nice time.

Best regards,
Madhan

Loader.
Up arrow icon