Data grid is a control for display the data in tabular format in our application. In data grid when u select any row then for getting this rows unique id write code like :
Ex : // here we will take ‘dgcustomer’ as datagrid with following column name (Id,Name,RollNumber,Pass) I
string strid = "";
DataRowView rowview = dgcustomer.SelectedItem as DataRowView;
strid = rowview.Row["Id"].ToString();
MessageBox.Show("ID : " + strid);
See Also :
- Android Installation for beginners_Part-1
- Android Installation for beginners
- How to Resize a Partition in Windows 7 or Vista
- How to customize send to menu.
- How to change Folder background in windows 7
--
/\/ir@\/ <(.'.)>
0 comments:
Post a Comment
Thanks for comment