| | |
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 30minutes 2005 2008 access account arithmetic array basic bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dropdownlist excel fade file-dialog filter folder ftp generatetags google gridview hardcopy images input insert intel internet mobile monitor ms net networking objects output panel passingparameters peertopeervideostreaming picturebox picturebox1 port position print printing problem problemwithinstallation project save searchbox searchvb.net select serial shutdown soap survey table tcp temperature text textbox timer timespan toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year






