Cell/Row DoubleClick event for DataGrid
-
Hello guys I have to use datagrid (VS 2003) (not datagridview object) to modify an old project. Prob 1 I need to capture double click event either on the row or the cell in the DataGrid and then read the contents from that row. I have seen the props in the DataGrid object and I can't see any double click events like there are in datagridview object in VS 2005. Prob 2 I need to change the width on individual columns in the DataGrid but can't see any property, but PreferedColumnWidth which sets the size for all the columns. If any body can help me to fix this. It will b highly appreciated.
o O º(`'·.,(`'·., ?,.·''),.·'')º O o° »·'"`»* *? t4ure4n ?* *«·'"`« °o O º(,.·''(,.·'' ?`'·.,)`'·.,)º O o°
-
Hello guys I have to use datagrid (VS 2003) (not datagridview object) to modify an old project. Prob 1 I need to capture double click event either on the row or the cell in the DataGrid and then read the contents from that row. I have seen the props in the DataGrid object and I can't see any double click events like there are in datagridview object in VS 2005. Prob 2 I need to change the width on individual columns in the DataGrid but can't see any property, but PreferedColumnWidth which sets the size for all the columns. If any body can help me to fix this. It will b highly appreciated.
o O º(`'·.,(`'·., ?,.·''),.·'')º O o° »·'"`»* *? t4ure4n ?* *«·'"`« °o O º(,.·''(,.·'' ?`'·.,)`'·.,)º O o°
Problem 1: You'll have to use a little trickery. Inject some javascript that handles the click events on the client side and causes a postback, or a callback as necessary. Problem 2: You'll need to handle the RowCreated event and set the column width there.
only two letters away from being an asset
-
Problem 1: You'll have to use a little trickery. Inject some javascript that handles the click events on the client side and causes a postback, or a callback as necessary. Problem 2: You'll need to handle the RowCreated event and set the column width there.
only two letters away from being an asset
-
Bro. The app I am woking on is a WinForm and not webbased. second I can't c "RowCreated event" in the event list of DataGrid Object.
o O º(`'·.,(`'·., ?,.·''),.·'')º O o° »·'"`»* *? t4ure4n ?* *«·'"`« °o O º(,.·''(,.·'' ?`'·.,)`'·.,)º O o°
Sorry, I assumed Web since when not specified that is usually the target here. After the DataGrid has been bound loop through the columns and set the width. And don't use Bro please
only two letters away from being an asset