| | |
select row in datagrid....need help
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Apr 2006
Posts: 5
Reputation:
Solved Threads: 1
hi every one .
does any one know how to insert checkbox in datagrid so user can select row and how to know which rows selected
Hi,
I can give you some guides
About how to insert checkbox , I think you have to work with Table Styles property.
About how to know which row selected here you have to take the current data grid index by
DataGrid1.CurrentRowIndex
then you can access any values in the selected row by
DataGrid1.Item(.CurrentRowIndex, 0)
0 is for the first column and 1 for the second ....
Good Luck
does any one know how to insert checkbox in datagrid so user can select row and how to know which rows selected
Hi,
I can give you some guides
About how to insert checkbox , I think you have to work with Table Styles property.
About how to know which row selected here you have to take the current data grid index by
DataGrid1.CurrentRowIndex
then you can access any values in the selected row by
DataGrid1.Item(.CurrentRowIndex, 0)
0 is for the first column and 1 for the second ....
Good Luck
Hi,
To insert a checkbox to every row you must add a template column to your data grid.
Loren Soth
To insert a checkbox to every row you must add a template column to your data grid.
Loren Soth
Best regards,
Loren Soth
Crimson K. Software _________________________________________________________________ Crimson K. Blog
Loren Soth
Crimson K. Software _________________________________________________________________ Crimson K. Blog
•
•
Join Date: Feb 2009
Posts: 13
Reputation:
Solved Threads: 2
•
•
•
•
i have the same problem, i have check box and when checked i want the complete row to read of checked one.. can anyone help me plzzzzz
datagridview.currentrow.cells[1].value , datagridview.currentrow.cells[2] .value ....
like wise u can read the values of all the columns in the datagridview...
•
•
Join Date: Feb 2009
Posts: 13
Reputation:
Solved Threads: 2
•
•
•
•
i have a problem using datagrid in vb.net.
i want to bound it with database and want to change column length
please tell me about it
You can change the column length by
datagridview.columns(0).width = length
eg.
datagridview1.columns(0).width = 200
Likewise you can change the width of the datagridview....
You can also use the datagridview autoresizecolumns method to resize the columns automatically...
Thanks....
![]() |
Similar Threads
- How to select the Last row from a table..using Mysql (MySQL)
- How to delete a particular row from a datagrid..? (VB.NET)
- another one...selecing rows in datagrid and sorting with column headers (VB.NET)
- Displaying datagrid on second form (VB.NET)
- Deleting a Row From A DataGrid (VB.NET)
Other Threads in the VB.NET Forum
- Previous Thread: How to edit parts of a line
- Next Thread: How to get the current user
| Thread Tools | Search this Thread |
.net .net2008 2008 access account advanced application array basic beginner browser button buttons center click code combo cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic excel exists fade filter forms generatetags gridview html images input insert intel internet listview map mobile module monitor msaccess net number objects open panel passingparameters pdf picturebox picturebox2 port position print printing problem regex remove right-to-left save search searchvb.net select serial settings shutdown socket sqldatbase sqlserver survey temperature textbox timer timespan transparency txttoxmlconverter update user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode xml year






