how to detect double click on the tabel cell of DataTable

  • Thread starter Thread starter Maulin Vasavada
  • Start date Start date
M

Maulin Vasavada

Hi,

I have DataTable and I want to actually put a LinkLabel in one the
columns where I can click an do something BUT it seems I can't put
LinkLabel in the table cell of DataTable. So as an alternative I
thought if I can detect double click events on a cell I can get the
text in there and do something but I am not able to do so.

Please let me know if I have to provide more information to help solve
this problem.

Regards,
Maulin
 
You may be mixing up the DataTable with a DataGrid. The DataTable is used to
represent data that may have come from a database (not strictly nenessary).
The grid displays the DataTable and reacts to events such as double click.

You need to create a DataGrid column that is a hyperlink. You could do this
using the DataGrid Property Builder and handling the event when a user
select a cell.
 
Hi Chris,

Thanks for your response. Yes you are right. I am using DataTable and
DataGrid but I just overlooked that in my post. Now I am starting my
search on how to create a DataGrid Column that is hyperlink.

Regards,
Maulin
 
also i am not having data from any db or anything. What i have is, i
have some data of just columns and one column should contain
hyperlinks to a local exe file. I am developing a stand alone
appplication. I didn't see DataGrid Properties thing. My dataset is
reallly simple. Its like you can say, property name and value thing
where I want to display hyperlink in property value column.

Regards
Maulin
 
Back
Top