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,
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,