event handling

Posted by Rajivksharma under C# on 10/31/2008 | Views : 1563 | 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.




Responses

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

Up
0
Down
hi , rajiv


You can handle the event by Rowdatabound in Grid view ,

Ex:

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