471,328 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,328 software developers and data experts.

Gridview-Grouping Data

I am using a method to group data in Gridview. I am able to compare
one sortexpression with the gridview field. I would also like to
compare sortexpression2 with another gridviewfield. How is that

For example: GridView has FirstName,LastName,City

I would like to compare "FirstName" & "LastName" then set flag only
when both conditions are met.

private bool _SortedFlag = false;
private int _SortColumnIndex = -1;
private string _SortColumnHeader = "";

private void ResolveGroupingData(string sortExpression1, string
foreach (DataControlField field in gridCustomer.Columns)
if (field.SortExpression == sortExpression1)
_SortedFlag = true;
_SortColumnIndex =
_SortColumnHeader = field.HeaderText;

Jun 27 '08 #1
0 1035

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Nalaka | last post: by
3 posts views Thread by NateDawg | last post: by
3 posts views Thread by Jeff | last post: by
5 posts views Thread by Andrew Robinson | last post: by
4 posts views Thread by Peter | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.