Retrieving a ValueMember

    Date: 04/13/06 (C Sharp)    Keywords: no keywords

    Of course I'm not done with you yet...

    So I have a datagridview. I'm trying to pull CurrentRow information. Normally, this is an easy process;

    dgRates.CurrentRow.Cells[dgRates.Columns["clmProvID"].Index].Value

    Now, here's the fun bit, and I hope it's just me overlooking soemthing stupid again.

    I have one column (and will have more) that's a ComboBoxColumn instead of a TextBoxColumn. I need to extract the ValueMember instead of the Value. Cells[,] does not have a ValueMember function. Nor does Cells[,].Value. ComboBoxColumn does, obviously.

    So how do I get it?

    Thanks.

    Source: http://community.livejournal.com/csharp/57764.html

« Вышел №56... || Return a value from Form B... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home