Click here to Skip to main content
15,894,017 members

Comments by Sameera Fonseka (Top 25 by date)

Sameera Fonseka 3-Aug-12 5:43am View    
But that does not do my requirement..Sequence of the process datatable is returned from another method.Then it is set as the datasource of the datagridview.
After that I want to select some cells of that datagrid view according to some paramateres.Problem arises with that.I can't select any cell programmatically..

But if i manually add some records to the datagridview i can select any cell programmatically.So i am sure that it is some issue with the datatable returned.Is there any specific way to create a datatable in order to set it as the datasource of the datagridview?
Any help is highly appreciated..thank you very much
Sameera Fonseka 1-Aug-12 13:16pm View    
This didnt work either..but any setting of a cell can be done in a button click event..that is the point im stucked.
Before selecting cells i set the datasource of that datagridview to a datatable returned from another method.
Even i put above code,only the current cell is selected..tkx
Sameera Fonseka 1-Aug-12 12:55pm View    
Deleted
Unfortunately this didn't work either..what is "cableGrid"?hope this is the name of your datagridview.but i don't understand why its cell location [2,1] is set to datagridview2 current cell?..see some conflicting here..tkx
Sameera Fonseka 1-Aug-12 11:27am View    
Thankx alot..But this didn't work either.I tried it earlier..If I place this code inside the databinding complete event of the datagrid view it also worked..
That is the point i am stuck..How can i programmatically select multiple cells of a datagridview in a separate method?
Sameera Fonseka 31-Jul-12 14:30pm View    
sorry i m using win forms.. i will be very thankful if you can give me any hint..tkx