|
I have setup a datagrid and successfully filled it with data and always the top left cell is highlighted when it opens. How do I access the value in this cell without clicking on the cell itself? The cell value must be somewhere as it is highlighted when the grid opens.
Any help would be appreciated.If I click on the highlighted cell I can get the value it contains but that's not what I want at datagrid startup.At startup the grid opens in one tab and what I want is to click a different tab and for the value to be used to populate a set of textboxes on the new tab but only when the datagrid is first activated. After that it is no problem as a new set of textbox data is obtained by clicking a datagrid cell entry. I looked on msdn and it talked about a datagrid selection start value but it doesn't exist.
jenkinsdjj
jenkinsdjj
|
|
|
|
|
Either use the source location of the data, or get it from the datagrid via its cell row and column.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Thanks for that. I realised afterwards that I should access the data source feeding the datagrid. All is well now. Thanks again
jenkinsdjj
jenkinsdjj
|
|
|
|