Button in a datagrid (windows form)

M

MCDave

Hi all,

I'm trying to get a datagrid to display a button in every row, so that when
the user clicks on it, the value from the first column (record index) is
read, and then a new window opens for the user to see the full record (for
editing or what not).
I've seen examples in ASP.Net all over the place, but none for Windows
Forms.

Alternatively the user could just click on a row (no button) and the window
would open (not sure how to capture a row-click event, either).

I would use a listview, but the sortable columns on the datagrid are pretty
convenient.

MC
 
K

Ken Tucker [MVP]

Hi,

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q888q

Ken
----------
Hi all,

I'm trying to get a datagrid to display a button in every row, so that when
the user clicks on it, the value from the first column (record index) is
read, and then a new window opens for the user to see the full record (for
editing or what not).
I've seen examples in ASP.Net all over the place, but none for Windows
Forms.

Alternatively the user could just click on a row (no button) and the window
would open (not sure how to capture a row-click event, either).

I would use a listview, but the sortable columns on the datagrid are pretty
convenient.

MC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top