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. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon