question in the use of the datagrid
-
Hello how to oblige, the user, to select all the row in the datagrid, not a unique cell, so i want to make the grid view like the listview.
-
Hello how to oblige, the user, to select all the row in the datagrid, not a unique cell, so i want to make the grid view like the listview.
hi try this: put this line in the dataGrid.CurrentCellChanged event dataGrid.Select(grdUser.CurrentCell.RowNumber)
Tamimi - Code
-
hi try this: put this line in the dataGrid.CurrentCellChanged event dataGrid.Select(grdUser.CurrentCell.RowNumber)
Tamimi - Code
yes man i did that but the problem was that the current cell is selected too, what i need is to select only the row u get it ?
-
yes man i did that but the problem was that the current cell is selected too, what i need is to select only the row u get it ?
hi try this: grid.Select(grid.CurrentCell.RowNumber) Dim gc As New DataGridCell(grid.CurrentCell.RowNumber, -1) grid.CurrentCell = gc
Tamimi - Code
-
hi try this: grid.Select(grid.CurrentCell.RowNumber) Dim gc As New DataGridCell(grid.CurrentCell.RowNumber, -1) grid.CurrentCell = gc
Tamimi - Code
this is the method i think but in this way the cell of the column 0 is selected not the -1 and if i made 2 the cell 1 is the selected cell - ihave 2 columns : 0 and 1 but my friend if u can answare this question the situation will be better : how to make sorting when the user clicks on the header of a listview i made a list view of many columns but i want to make sorting of the data by columns when he clicks the header of column i - the data in the listview should be sorted by this column - i.
-
this is the method i think but in this way the cell of the column 0 is selected not the -1 and if i made 2 the cell 1 is the selected cell - ihave 2 columns : 0 and 1 but my friend if u can answare this question the situation will be better : how to make sorting when the user clicks on the header of a listview i made a list view of many columns but i want to make sorting of the data by columns when he clicks the header of column i - the data in the listview should be sorted by this column - i.
hi hasan i don't think that i understode you last message !!!!!!!!!! and i test the code in my last msg , and its work correctly , make sure that you are putting the code in the CurrentCellChanged excuse me i never did sorting with a listview
Tamimi - Code
-
hi hasan i don't think that i understode you last message !!!!!!!!!! and i test the code in my last msg , and its work correctly , make sure that you are putting the code in the CurrentCellChanged excuse me i never did sorting with a listview
Tamimi - Code
thanks man i solved the problem thanks alot ;)