Browse by Tags

All Tags » GridView (RSS)

Get GridView RowIndex upon button click by guru_sarkar

Scenario: There might be case when you want to get the row-index or any other details from the row, when a button inside a GridView Row is clicked. I will show you different ways. 1: "Select" link/button Click It is very easy when to get row information...
Filed under: ,

Binding List of Custom Class to GridView or ListView Control by guru_sarkar

Scenario: I am not going to write a lot but just show some code. Say you have a class(e.g. Customer) that itself exposes another class(e.g.Person) as its property. Now you want to take a List of Customer class and bind it to databound controls like GridView...
Filed under: ,

Not able to change GridView Styles by guru_sarkar

I have a test website where I try and play with various stuff. Today I was trying to play with GridView styles to help someone on a forum. Suddenly I could not change the Styles of asp.net GridView control. I choose one of the available Auto-Format styling...
Filed under: , ,

Passing Value to an OnCheckedChanged Event Handler of asp.net Checkbox Control by guru_sarkar

Scenario In one of our project we have a custom CompositeDataBoundControl. I am binding the control with my custom objects collection and displaying records in <li>. Each record has One of the <li> that is hidden and contains the UniqueID...
More Posts