hi friend can any one give a solution for
deleting or removing the particular column in the datadialgrid in vb.net
and deleting particular row in the datadialgrid in the vb.net
regards
vijay
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
paul danielPosted Mar 2, 2010, 2:11 AM
kiran kumarPosted Feb 27, 2010, 3:10 AM
i will explain about the code here
first enter the column name to delete
in my project column names are column1,column2,column3
and then click the delete col button to delete that particular column
then coming to next one,enter the number of rows to be added and click add rows button,rows will be added up in the grid
then coming to next one select the row to be deleted in the datagrid, just click on the small arrowmark of the desired row to be deleted and click on the button select row and click me to delete
mark the answer if it helps you
kiran kumarPosted Feb 27, 2010, 2:29 AM
ok man i will help you in this topic also with code
vijay antonyPosted Feb 27, 2010, 2:16 AM
i did not get any uploaded document kiran
Amit ChoudharyPosted Feb 27, 2010, 2:13 AM
For deleting row:
Dim Dr As DataRow
Dr = DtSalesReport.Rows.Item(dgvSalesReport.CurrentRow. Index)
Dr.Delete()
DtSalesReport.AcceptChanges()
For Deleting a column checkout the following link:
http://www.daniweb.com/forums/thread147751.html
Please don't forget to mark the answer if it helps you.
kiran kumarPosted Feb 27, 2010, 2:06 AM
i have uploaded for adding rows and cols dynamically,check it out