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

[Solved] Delete message after successfull deletion

1 Answer 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tapinder
Top achievements
Rank 1
Tapinder asked on 31 Jul 2009, 07:40 PM
Hi,

How to display the "Successfully Deleted" message at top of grid instead of at bottom of grid?

The following code add the new control at bottom of the grid but i want this to be added at top of grid as first row.

RadGrid1.Controls.Add(new LiteralControl("<span class='gridAlertMsg'>" + Convert.ToString(this.GetLocalResourceObject("fooo")) + "</span>"));


Thanks
Tapinder

1 Answer, 1 is accepted

Sort by
0
Tapinder
Top achievements
Rank 1
answered on 31 Jul 2009, 07:44 PM
Hi again,

I figured it out :

RadGrid1.Controls.AddAt(1, new LiteralControl("<span class='gridAlertMsg'>" + string.Format(Convert.ToString(this.GetLocalResourceObject("foooo")), programId) + "</span>"));


Thanks
Tapinder
Tags
Grid
Asked by
Tapinder
Top achievements
Rank 1
Answers by
Tapinder
Top achievements
Rank 1
Share this question
or