Hey Guys
Alot of articles and alot of stuff still no answer. Please help me on
this one. I need to get data out of a filterred selected row !!! ...
this is how my code looks like....
On load:
dv = SearchData.DefaultView;
if (SearchData.Rows.Count >= 1)
{
grd.DataSource = dv;
}
I have datagrid which is filtered on keyup in a text box :
string strRowFilter = String.Concat("FirstName LIKE '%", actual, "%'",
"OR LastName LIKE '%" , actual, "%'");
dv.RowFilter = strRowFilter;
grd.DataSource = dv;
Then i need to get from the filtered ron in the datagrid. I am using
currentcell changed
DataGridCell tCell;
tCell = grd.CurrentCell;
grd.Select(tCell.RowNumber);
MessageBox.Show(grd.CurrentRowIndex.ToString());
MessageBox.Show(dv.Table.Rows[tCell.RowNumber][0].ToString());
I need to get ID of this row from my column.
I know i am doing sumthing wrong... plzzzzzz help
Please help!!!
sunny