I want to be able to customize the GroupByRow by adding the value of this group, and a indicator based on the rows in the group and finally display in a particular format. I think I need to do it in ultraGrid1_InitializeGroupByRow(). It looks like this:
Account Id: 123900 VIP Cash <--- accout Id column is hidden in the rows, but how do I receive this value to use row 1 <--- how to retrieve the info in teh underneath group row 2 row 3 Account Id: 124500 Regular Credit row 1 row 2
1. This might be a bug. I don't see why the first row would be selected automatically. Are you using the latest hot fix? It's goin to be difficult to clear the selection because it's most likely done asynchronously. You probably have to do it using a BeginInvoke.
2. There's no built-in functionality to add a button to a GroupByRow. You could try using the Image property to assign an image. I am not sure if images are supported. If not, you would have to use a CreationFilter. Either way, you would then have to use the UIElements to determine when the image was clicked and get the GroupByRow.
Matt,
Thanks, I have it mostly working - I set e.Row.Description to my customize string. now I have more requests:
1. The first GroupByRow is highlighted when the grid populated, how do I turn it off - I don't want any rows in the grid pre-selected.
2. I would like to place an icon in the GroupByRow, when the icon clicked, I want to either display a tool tip or populate a small window. I am thinking to add a linked box or something, but how do I hook it up with Description which is just a string. Do I need to override some function to accomplish?
You might want to look at the GroupByRowDescriptionMask property, which might give you much of what you're looking for. If you need more customizability, you are correct in that you'd need the InitializeGroupByRow event, within which you would set the Description of the row yourself. If you need to get at the rows that belong to that GroupByRow, you can get them from the Rows property of the GroupByRow; from here, you can access individual cell values as you would normally.
-Matt