This is a migrated thread and some comments may be shown as answers.

gridview column order will be changed at runtime

1 Answer 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dhaval
Top achievements
Rank 1
Dhaval asked on 25 Feb 2011, 03:23 PM
Hi all,

I have an issue regarding to gridview column
Gridview column's order will be changed at runtime
I have edit some of the column cell value at runtime using this code

System.Windows.Controls.TextBlock tbActual = (System.Windows.Controls.TextBlock)e.Row.Cells[7].Content;
                    if (e.Row.Cells[7].Column.Header.ToString() == "Actual Cost")
                    {
                        if (tbActual.Text != "")
                        {
                            tbActual.Text = (Decimal.Parse(tbActual.Text)).ToString("C2", ci);
                        }
                    }

but at runtime column's order will be changed automatically.
So, help me on this issue quickly

Thanks,

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 03 Mar 2011, 08:39 AM
Hi Dhaval,

Excuse me. but I fail to understand properly you requirements. Could you please provide a simple demo project, to depict your case more clearly and help us provide you better support to your case. 

Regards,
Ivan Ivanov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Dhaval
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or