c# - How to react to a onlick in an ultragrid -


i have code creates ultragrid column has columnstyle.button it's style.

   private void grid_initializelayout(object sender, initializelayouteventargs e){         grid.resetemptyselectedappearance();          var column =  grid.setcolumn("draw lines", "draw lines", 30);         column.style = columnstyle.button;          grid.hideothercolumns();     } 

now make react being clicked on. have found this not show me how bind variable, can either double click in visual studio editor (but in case directs me grid_initializelayout) or can go the item in question , add function onclick variable, 1 doesn't exist.

private void grid_initializerow(object sender, initializeroweventargs e)         var buttoncell= e.row.cells["draw lines"];         //something here? 

this want call

   private void ondrawline(object sender, infragistics.win.ultrawingrid.celleventargs e)     {         debug.print("test test");     } 

it's trivial i'm stuck.

the ultragrid responds clicks on cell button explained in link posted using event called clickcellbutton. need subscribe grid event in usual ways. (designer or code doesn't matter)

private void grid_clickcellbutton(object sender, clickcelleventargs e) {     // check if click happens on required column     if (e.cell.column.key == "draw lines")     {         ... code ...     } } 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -