event handling

Posted by Rajivksharma under C# on 10/31/2008 | Views : 1487 | Status : [Member] | Replies : 1
i want an event or something else which helps the cell to be unique in a grid . Plz give me one example also.


Posted by: Majith on: 10/31/2008 [Member] Starter

hi , rajiv

You can handle the event by Rowdatabound in Grid view ,


you can identify the cell by creating Data table
int id = 0;

if (e.Row.RowType == DataControlRowType.DataRow)

id = Int32.Parse(e.Rows.Cells[0].text;

you can also use the tables.select(Expression) to filter the id.

Rajivksharma, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response