Attached File : ex.png
telerik:RadGrid (ASP.NET Web)
I want to get the header name of the column clicked by the user with the mouse.
<ClientSettings EnablePostBackOnRowClick="true">
<Selecting AllowRowSelect="true" />
</ClientSettings>
protected void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)
{
var dataItem = gv.SelectedItems[0] as GridDataItem;
if (dataItem != null)
{
var name = dataItem["ColUniqueName"].Text;
}
}
The above source code is not what I want.
Because the user specified ColUniqueName .
I want to automatically get the coordinates of Row and Column&Column HeaderName when the mouse cursor is placed on the Cell of RadGrid.
It is Example Of FarPoint Spread.
private void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
{
string strTag = fpSpread1.Sheets[0].Columns[e.Column].DataField.ToString();
}
In FarPoint Spread, There is automatically get the coordinates of Row and Column&Column Header Name when the mouse cursor is placed on the Cell of FarPoint Spread.
Please Help Me