Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

C# open a file that is stored path in a database from mouse click on a cell in a datagridview

$
0
0

Hi guys

I stored a path on database, that path represent file on speical location for example "D:\\New\\".

now i need to resume that file from that location in textbox or in axWindowsMediaPlayer1 by URL?

this is code

string paths = dataGridView1.SelectedRows[0].Cells["path"].Value.ToString();

textBox2.Text = paths;

and this problem show me now

"An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll

Additional information: Index was out of range. Must be non-negative and less than the size of the collection."


Viewing all articles
Browse latest Browse all 2535

Trending Articles