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.
Unfortunately, activation email could not send to your email. Please try again.

What happens when style.Tag changes

Thread ID:

Created:

Updated:

Platform:

Replies:

18756 Sep 8,2004 01:11 PM Sep 9,2004 12:50 PM Windows Forms 3
loading
Tags: GridControl
Madhavi Balusu
Asked On September 8, 2004 01:11 PM

When the grid''s style.Tag changes (in QueryCellInfo), does this make the grid to refresh or something and hence send my usercontrol in this cell to loose focus? Is this how your code is setup because my control in this is loosing focus the minute the Tag changes?

Administrator [Syncfusion]
Replied On September 8, 2004 01:40 PM

What kind of objects are you putting into the style.Tag? The grid normally does not use style.Tag for anything (the one exception is the header cells for GridDataBoundGrid). So, normally, you control what goes into style.Tag. The default behavior for the grid is to clone style.Tag objects. Is this OK for your tag objects? Does cloning the object do something to your usercontrol? If you do not want your tag objects being cloned, then try setting these static properties. GridStyleInfoStore.TagProperty.IsCloneable = false; GridStyleInfoStore.TagProperty.IsDisposable = false; If this does not explain what you are seeing, then can you post a sample project showing the problem you are having?

Madhavi Balusu
Replied On September 9, 2004 12:36 PM

Hi Clay, I am storing integer values in the tag. It will be difficult for me to whip up a sample since our app is DB intensive, but I will do it as a last resort. Tell me, is there another way to store extra information in the cell (other than CellValue) some other way than the Tag? For a particular column, each cell has CellValues and "custom subValue". Is there a way to store this custom value in the cell members ( other than .Tag ), without me maintaining data structures? Everytime the user tabs aways from the field, I also need to store CellValue and this "Custom Value" into the DB.

Administrator [Syncfusion]
Replied On September 9, 2004 12:50 PM

If the extra value is a string, you can put it in the style.Description for any cell that is not a PushButton (as pushbutton cells use the Description).

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.

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.

;