Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Default row is populated
posted

Hi

When i bind the data with the grid, a new empty row along with the binded data is being populated. If there is now data to be populated then also a default blank row is getting populated. I tried to set AllowNewDefault to NO, the i am not even able to add new row using javascript.

My requirement is to display and empty grid if there is no data and display the exact rows which are being retrieved. I am using a link button which in turns calls a javascript function to add new row.

Parents
  • 28464
    posted

    Hello Anil,

    Do you need to remove the AddNewBox row? This sounds weird to me, since by default is is turned off I think, but in any case, please take a look at the following KB article for details on how to obtain the AddNewBox reference and modify its hidden state:

    http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=2799 

    You can also use the DisplayLayout.NoDataMessage to customize the message that will appear when the grid is not bound with data.

     

Reply Children