You can use the ExtendedDataGri d
http://dotnet.leadit.be/extendeddatagrid
Using the ExtendedDataGri dLinkLabelColum n you can have a LinkLabel inside a
cell. You can use this when you want to be able to react for example to a
mouse click on a cell. The sample below shows how the Column can be used to
show data in a MessageBox when the user clicks on the cell.
private void extendedDataGri dLinkLabelColum n1_LinkLabelCol umnClick
(object sender, Leadit.Extended DataGrid.LinkLa belColumnEventA rgs e)
{
MessageBox.Show (((Customer)e.R owValue).Commen ts);
}
Use the LinkLabelText to control the caption that the LinkLabel shows in the
cell. If you leave this property empty, the LinkLabel will show the real
value of the corresponding cell.
--
Greetz
Jan Tielens
_______________ _______________ __
Read my weblog:
http://weblogs.asp.net/jan
"Ahsan" <ah********@hot mail.com> wrote in message
news:05******** *************** *****@phx.gbl.. .
Hi there
I am using datagrid with SQl server
I wonder if its possible to create a command button on
each row of the grid.
Actually I want to open a new form on every button click
with differnt values.
Thanks in advance.
ason