Please Refer Image under TExt
Thanks
I believe that you can set the description in the InitializeGroupByRow event. it would be something like e.Row.Description = "....."
thanks for your Reply , yes u r correct , i already write a code in Intialize grouprow event. its works for first group only. i can't able to assign Descrption for second groupby column headers.
Regards
saravanan
In the InitializeGroupByRow event try something like:
(C#)
If (e.Row.Column.Key == "Vendor")
e.Row.Description = "TADA!!!";
You have to test for the column in the row....
thanks for u r reply , i also try that code , throw run time error
If e.Row.Column.Key = "Batch Nbr" Then
e.Row.Description ="Batch #: " & e.Row.Rows.Item(0).Cells("Batch Nbr").Text & " - " & e.Row.Rows.Item(0).Cells("Jrnl type").Text & " - " & e.Row.Rows.Item(0).Cells("Tran Type").Text
End If
If e.Row.Column.Key = "DocumentNbr" Then
e.Row.Description = "Doc #: " & e.Row.Rows.Item(0).Cells("DocumentNbr").Text & " - " & e.Row.Rows.Item(0).Cells("Tran date").Text & " - " & e.Row.Rows.Item(0).Cells("Customer").Text
i write this code in Initialize groupbyRow event , but throw run time error. because sort order columns have two grouping
Can you be specific about the error that gets returned?
Also try this:
e.Row.Description = "Doc #: "
and see if this works... if it does work just add the pieces in one at a time till you find the one that generates the error....
thanks for u r reply,
in this code is worked Single Group only, its not working multiple grouping option, throw run time error ( error desc : Object reference not set to an instance of an object.)
, see attachement image
Hello Saravanan,
I am following up to ask if you have addressed the issue you are having? Have you reviewed my sample that I attached previously?
Would it be possible to provide an isolated sample that demonstrates the run time error? I attached a sample that you can start with if you like. If you add the first two column in the groupby box, their descriptions are updated from the IntializeGroupByRow event.
Let me know if you have any questions.
yes u r right , i need get row information and to show group by row , how it is possible , multiple grouping
I think the problem you are having is because you might be trying to get row information that is part of the groupby band.
my guess is you are erroring out when you are trying to set the description for Batch Nbr. If so this is because the rows information being passed back at this point are the groupby rows (Batch Nbr and DocumentNbr). You would have to recurse through the childbands to pull the information you are looking for. Testing for IsGroupBy on each band.
Maybe the Infragistics team has a good mechanism for getting this info you need.... sorry I cannot provide any more information.