Hi,
I am using below template in grid :-
<telerik:GridTemplateColumn HeaderText="SequenceOrder" Groupable="false" Visible="true">
<ItemTemplate>
<telerik:RadNumericTextBox ID="txtSequence" runat="server" MaxLength="5" NumberFormat-DecimalDigits="0">
</telerik:RadNumericTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
This is done to assign a sequence to existing RowItems.
Hence when a user enters some number in above textbox and press a button the sequence is updated in database.
And when the user loads the application this textboxes are populated with previously entered sequence at runtime in ItemDataBound Event as below :-
RadNumericTextBox txtSequence = e.Item.FindControl("txtSequence") as RadNumericTextBox;
DataTable table = GetSequenceData();
if (table != null)
{
if (table.Rows.Count == 1)
{
txtSequence.Text = table.Rows[0][0].ToString();
}
}
Is there any way i can sort rows of this grid based on entered sequence values.