Show "Click Here to Add a New Item"

2 posts, 1 answers
  1. Simon
    Simon avatar
    23 posts
    Member since:
    Aug 2011

    Posted 07 Mar 2016 Link to this post

    Hi

    I have a grid bound to an empty dataset. When I load the form, it shows an empty row in the grid instead of showing the "Click Here to Add a New Item". As soon as I've added a row, the "Click Here to Add a New Item" row appears. How can I get it to show "Click Here to Add a New Item" at the start instead of showing an empty row?

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    1647 posts

    Posted 08 Mar 2016 Link to this post

    Hi Simon,

    Thank you for writing.

    You should just set the current row to null:
    radGridView1.CurrentRow = null;

    Let me know if you have additional questions.

    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top