开发者

Textbox data to datagrid view

开发者 https://www.devze.com 2023-01-09 08:30 出处:网络
i\'m developing a window application which is displaying valuse in 4 textboxes ,now i want save these textboxes data to datagrid view on save button click

i'm developing a window application which is displaying valuse in 4 textboxes ,now i want save these textboxes data to datagrid view on save button click

like r1 1 1 1 1 delete

r2 2 2 2 2 delete

where delete is a button onclick of which that particul开发者_JAVA技巧ar row gets deleted


Assuming you're talking about WPF, also question is very unclear, and is hard to understand what you're trying to do.

I think you'd better want to use A ListView if the data I/O is external (by buttons) but anyway:

Create event handlers for all the textboxes, check for existance in the DataGrid (thru DataGrid.Items), and appropriately add it to the DataGrid (again, using DataGrid.Items.Add)

To delete them use the same property to search the item you want to delete.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号