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

[Solved] Removing the Row from grid

1 Answer 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 01 Sep 2009, 01:21 PM
I want to remove the row from the grid how to remove?

 In my grid content the 4 column last column contains the Remove button column on each row. when i click that button i want to remove that row ...

                                        <telerik:GridBoundColumn Aggregate="Sum" DataField="EstTrials" DataType="System.Int32"
                                            FooterText="Total : "  HeaderText="Trials" SortExpression="EstTrials" UniqueName="Trials :">
                                        </telerik:GridBoundColumn>

                                        <telerik:GridBoundColumn Aggregate="Sum" DataField="EstCost" DataFormatString="{0:c}" FooterText = "Total Sum"
                                            DataType="System.Decimal"  HeaderText="Cost" SortExpression="EstCost" UniqueName="Cost :">
                                        </telerik:GridBoundColumn>
                                      
                                        <telerik:GridButtonColumn ButtonType="ImageButton" HeaderText="Remove" ImageUrl="images/Delete.gif">
                                        </telerik:GridButtonColumn>




How to remove on clicking image button  ? using above code /

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 01 Sep 2009, 01:25 PM
Hello,

You should remove the item from the data source and rebind the grid to achieve your goal.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Rahul
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or