?
Solved

Windows Form Datagrid Unselect Row when Clear Button pressed

Posted on 2005-04-12
1
Medium Priority
?
461 Views
Last Modified: 2008-01-09
Hi,

I bind a windows form datagrid using the code below from a dataset.

Lets say user selects a row. If clear Button is pressed the selected row should be UnSelected.
if we call back the function again it works fine but I dont want to use the function instead is there
any method to unselect the highlighted row??

public function LoadGrid()

dim ds as new dataset
ds = ObjCustomer.GetCustomers ----Returns dataset
DataGrid1.setDataBinding(ds.tables(0),"Nothing")

end function
0
Comment
Question by:sainavya1215
1 Comment
 
LVL 13

Accepted Solution

by:
Torrwin earned 600 total points
ID: 13766977
datagrid1.unselect(RowNumber)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Loops Section Overview
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question