"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Tuesday, May 11, 2010

add row dynamically in grid

Hai everybody,

2day im showing u a small  piece of code to add row dynamically in a grid.Mygrid conatin 2 dropdown 'n one textbox (With validation).i also used ajax for this.















Documentation

On the txtchange event i'm catching the entered Number.Later i creating a datatable 'n on the table i define no of colum on the gird then a for loop i call the desired no of row to be created and i add that row to the table 'n giving the grid datascorce as table.Logic is Simple :).

I had created a demo u can download from Here



Have a nice day... 'N happy Coding :)

Programming Microsoft Windows Forms (Pro Developer)Data Binding with Windows Forms 2.0: Programming Smart Client Data Applications with .NETWindows Forms in Action: Second Edition of Windows Forms Programming with C#

No comments: