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

Adding some row on the top Grid

1 Answer 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nicky
Top achievements
Rank 1
Nicky asked on 12 Oct 2007, 09:41 PM
Hi Telerik Team,

I am using gridview for winforms here is the probem .

How can I Add some row like e.g. 6th to the top in the radgridview.
Other is Question is:
How Can  I add radLabels to the form . I am trying to drag and drop on winform it get disapper.
Please provide solution.


Thanks
Sushil

1 Answer, 1 is accepted

Sort by
0
Angel
Telerik team
answered on 15 Oct 2007, 02:42 PM
Hi Sushil,

  1. You can't add a row to the top of RadGridView through the API. Instead, you can add it through your data source. For example, if you are using a DataTable as data source you can use the following code:

    DataRow row = table.NewRow(); 
    row["ID"] = ""
    row["Name"] = "AAA"
    row["Phone"] = "555-435-143"
    table.Rows.InsertAt(row, 0);             
    this.radGridView1.MasterGridViewInfo.UpdateView(); 
     
     
  2. Add labels to a form: this was a known issue in RadControls for WinForms Q1 2007 SP2, released several months ago. It has been fixed since, so we will suggest downloading the latest release (Q2 SP1) and upgrading your application.

Let us know if we can be of further assistance.

Regards,
Angel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Nicky
Top achievements
Rank 1
Answers by
Angel
Telerik team
Share this question
or