Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid events in webpart with ICellProvider/Consumer interface

Status
Not open for further replies.

ChaserNL

Programmer
Mar 22, 2005
213
NL
Hello everyone,

I am trying to get a webpart that implements an ICellConsumer and Provider interface to work.

The idea is that a webpart sends a value using the ICellProvider interface to a webpart that implements both the Consumer and Provider interfaces this webpart uses this value to set the datasource of the datagrid, now when a button is selected in this datagrid it sends in turn a value to a 3th webpart.

If i specify the Datagrid in the CreateChildControls i can't get the value that was send to this webpart in time, so no data is showed, i can however (if i hardcode this value) get the eventhandler for the datagrid row to work, and it sends its value to the 3th webpart succesfully.

Now if i specify the datagrid in the RenderWebpart section i can get the value of the 1th webpart so i can bind the correct datasource, but now the event of clicking a button in the datagrid doesn't work anymore i only get a postback but it never hits the eventhandler...

Anyone knows what couses this, and better yet know the sollution!

Greetings Paul.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top