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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

some issues or constraints of grid

Thread ID:





94346 May 8,2010 04:27 AM UTC May 20,2010 06:39 PM UTC ASP.NET Web Forms (Classic) 3
Tags: GridGroupingControl
jeren norman
Asked On May 8, 2010 04:27 AM UTC

I encountered some issues about SF grid (asp.net), many some SMART can help me.

1. Why all of grid columns header apply only one cssclass? I set the property TableDescriptor.Columns[n].Appeance.ColumnHeaderCell.CssClass (n= 1 to 10) to different css class name and eventually get a result of the same style on every headercolumns, What's the logic?

2. Continue issue 1. I can really set and apply different styles(CssCalss) of cells of headers or record fields when event RowDataBound, but they pass asway after any postback!! (Postback without rebinding data.)

3. How could I get the webcontrol in every cells after a postback by simple asp.net event of button_click? That means, how can I findcontrol or directly get rows SET to fetch every webcontrol embedded into different cells except RowDataBound?
(ps. Event RowDataBound's triggered only first time of page_load, so i cannot fetch it on this event when any postback.)

4. I can embedded many webcontrols into recordfield by event QueryCellStyleInfo, but they're all the same outfit... So, I set different value to their properties when event RowDataBound.
Have any better ideas implement this by code behind mode?

5. Why the sorting keeps in ascending direction if the grid gouping control does not put in aspx design mode beforehand but added by this way Controls.Add() with binddata on every page_load?

Bharath M [Syncfusion]
Replied On May 13, 2010 11:25 AM UTC

Hi Jeren,

Thank you for your interest in Syncfusion products.

We are unable to reproduce the reported issue’s number 1 and 2 in our latest version. Could you please update us the Essential studio version that you are using.

Issue 3: we suggest you to use “TopLevelTable” property of GridGroupingControl, this will have all the controls that are embedded to grid. You can iterate through rows and columns of table to get your work done.

Issue 4: We suggest you to use QueryCellStyleInfo event, which is the best way to achieve you requirement.

Issue 5: We are unable to reproduce the reported issue. Could you please share your sample code to reproduce this issue.

Let me know if you have any concerns.


jeren norman
Replied On May 14, 2010 01:09 AM UTC

Thanks for your TIPs~


Issue 1, 2 should not exists on latest version, but mine is 7.203. Maybe, it's time to upgrde. I'll try it.

Issue 3, That's great to be resolved.

Issue 4, It's convenient to implement this event QueryCellStyleInfo to add controls into template when page_load , but, after postback, all of controls are no more.
The reason is that QueryCellStyleInfo would be raised by data binding, and there's no any action of rebinding data when POSTBACK in my code like this:


//I hope not to bind data every POSTBACK.

Issue 5,
I have make a new instance of gridgroupingcontol every page_load include all of POSTBACKs. This's a dynamic way to add grid to my webform, instead of adding the tag to vs.net design mode.

In this situation, the sorting would be ascending always.

Bharath M [Syncfusion]
Replied On May 20, 2010 06:39 PM UTC

Hi Jeren,

We regret for delayed response.

Issue 4: I am afraid that i am unable to reproduce the reported issue. QueryCellStyleInfo event will fire on all postback regardless DataBound. Could you please share your sample code with us to reproduce this issue.

Issue 5: We suggest you to add the sorted columns to grid as follows to resolve your issue.

For ascending order:

For decending order:

Let me know if you have any concerns.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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