Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

[ once4ever ]
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...