hamid Posted April 21, 2006 Posted April 21, 2006 how can search string in specific column of datagrid (all records) ? i have a datagrid and a textbox, when user change textbox content i want search it in datagrid (specific column) and direct user to it row. but i dont know how can i search in column? thanks Quote [ once4ever ]
hamid Posted April 22, 2006 Author Posted April 22, 2006 ? ok, how can return current value of column3 and row 2 ? Quote [ once4ever ]
jch001 Posted April 25, 2006 Posted April 25, 2006 try (Gives you the current selection) intR = DataGrid1.CurrentRowIndex intC = DataGrid1.CurrentCell.ColumnNumber DataGrid1.Item(intR, intC) will give you the value in the Cell. Then you can use a loop, and go from the start of a column to the end of a column putting in you own values for column, to meet your needs. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.