Quantcast
Viewing all articles
Browse latest Browse all 12583

how to show display memeber of datagridviewcombobox from textbox?

Hi,

I am developing an accounting software with vocher entry as Master Detail. using vb.net and mysql as shown below. As you see there are two datagrid combo box 1 for 'Debit/Credit'(Built in the Grid)  and other for 'ledger names'(this is added programatically added to this datagrid on runtime).Now. i want when i Hit the grid 1st time, after entering the bill amount field , 'coz its a purchase data on row 1should be:-

Supplier name :- "Dharm"

Bill Amount :- 9000.00

grid Header  ------------------>  Dr/Cr. |      Ledger   |       Debit | Credit |

data---------------------------->   Credit |  Dharm         |              |  9000.00|

But I get the result as follows:-

grid Header  ------------------>  Dr/Cr. |      Ledger   |       Debit | Credit |

data---------------------------->   Credit |                    |              |  9000.00|

That means  technically ----- grid.rows(0).Cell(1).value="null/empty." 

After this i need to add a new row, but my 0 row becomes 1 row

also pls suggest me how to make  grid.rows(0).Cell(1)......... editable..

P.S.: I have added my voucher image but i get the following error:-

Body text cannot contain images or links until we are able to verify your account


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>