M
Mubashar Ahmad
Dear Frnds
I m using DataGrid Control in my project.
On the mouse Up event i get the information from DataGrid row using Currencty Manager. code is below
private void dgPassengers_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
string tHistoryId;
if (dsInquiry.Tables["QueryHistory"].DefaultView.Count > 0)
{
HistoryId = ((DataRowView)cmQuery.Current).Row["HistoryID"].ToString();
this.HistoryId = tHistoryId;
this.DoAction(InquiryActions.EditQuery);
}
}
it is working fine. but when i click on the Column header it sorts the Grid and it should also give the information of the row where the Record pointer is located. but it gives wrong information.
or we can say it doesn't move the record pointer to the row it was pointing before sorting.
please give suggestion
thanks and regards
Mubashar Ahmad
I m using DataGrid Control in my project.
On the mouse Up event i get the information from DataGrid row using Currencty Manager. code is below
private void dgPassengers_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
string tHistoryId;
if (dsInquiry.Tables["QueryHistory"].DefaultView.Count > 0)
{
HistoryId = ((DataRowView)cmQuery.Current).Row["HistoryID"].ToString();
this.HistoryId = tHistoryId;
this.DoAction(InquiryActions.EditQuery);
}
}
it is working fine. but when i click on the Column header it sorts the Grid and it should also give the information of the row where the Record pointer is located. but it gives wrong information.
or we can say it doesn't move the record pointer to the row it was pointing before sorting.
please give suggestion
thanks and regards
Mubashar Ahmad